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

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

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

revision 1.6 by mark, Tue Apr 30 21:37:26 2002 UTC revision 1.7 by mkoch, Tue Mar 11 11:48:51 2003 UTC
# Line 47  final public class MappedByteFileBuffer Line 47  final public class MappedByteFileBuffer
47    public FileChannelImpl ch;    public FileChannelImpl ch;
48    public MappedByteFileBuffer(FileChannelImpl ch)    public MappedByteFileBuffer(FileChannelImpl ch)
49    {    {
50        // FIXME
51        super (0, 0, 0, 0);
52      this.ch = ch;      this.ch = ch;
53      address = ch.address;      address = ch.address;
     try {  
       long si = ch.size() / 1;  
       limit((int)si);  
     } catch (IOException e) {  
       System.err.println("failed to get size of file-channel's file");  
     }  
54    }    }
55    public MappedByteFileBuffer(MappedByteFileBuffer b)    public MappedByteFileBuffer(MappedByteFileBuffer b)
56    {    {
57        // FIXME
58        super (0, 0, 0, 0);
59      this.ro = b.ro;      this.ro = b.ro;
60      this.ch = b.ch;      this.ch = b.ch;
61      address = b.address;      address = b.address;
     limit(b.limit());  
62    }    }
63    public boolean isReadOnly()    public boolean isReadOnly()
64    {    {

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

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