/[classpath]/classpath/gnu/java/nio/MappedCharFileBuffer.java
ViewVC logotype

Diff of /classpath/gnu/java/nio/MappedCharFileBuffer.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.8 by mkoch, Mon Nov 25 07:42:48 2002 UTC revision 1.9 by mkoch, Tue Mar 11 11:48:51 2003 UTC
# Line 58  final public class MappedCharFileBuffer Line 58  final public class MappedCharFileBuffer
58    
59    public MappedCharFileBuffer(FileChannelImpl ch)    public MappedCharFileBuffer(FileChannelImpl ch)
60    {    {
61        // FIXME
62        super (0, 0, 0, 0);
63      this.ch = ch;      this.ch = ch;
64      address = ch.address;      address = ch.address;
     try {  
       long si = ch.size() / 2;  
       limit((int)si);  
     } catch (IOException e) {  
       System.err.println("failed to get size of file-channel's file");  
     }  
65    }    }
66    
67    public MappedCharFileBuffer(MappedCharFileBuffer b)    public MappedCharFileBuffer(MappedCharFileBuffer b)
68    {    {
69        // FIXME
70        super (0, 0, 0, 0);
71      this.ro = b.ro;      this.ro = b.ro;
72      this.ch = b.ch;      this.ch = b.ch;
73      address = b.address;      address = b.address;
     limit(b.limit());  
74    }    }
75    
76    final public ByteOrder order ()    final public ByteOrder order ()

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26