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

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

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

revision 1.7 by mkoch, Tue Mar 11 08:02:22 2003 UTC revision 1.8 by mkoch, Tue Mar 11 11:48:51 2003 UTC
# Line 47  final public class MappedLongFileBuffer Line 47  final public class MappedLongFileBuffer
47    public FileChannelImpl ch;    public FileChannelImpl ch;
48    public MappedLongFileBuffer(FileChannelImpl ch)    public MappedLongFileBuffer(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() / 8;  
       limit((int)si);  
     } catch (IOException e) {  
       System.err.println("failed to get size of file-channel's file");  
     }  
54    }    }
55    public MappedLongFileBuffer(MappedLongFileBuffer b)    public MappedLongFileBuffer(MappedLongFileBuffer 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.7  
changed lines
  Added in v.1.8

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