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

Diff of /classpath/gnu/java/nio/MappedShortFileBuffer.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 MappedShortFileBuffer Line 47  final public class MappedShortFileBuffer
47    public FileChannelImpl ch;    public FileChannelImpl ch;
48    public MappedShortFileBuffer(FileChannelImpl ch)    public MappedShortFileBuffer(FileChannelImpl ch)
49    {    {
50        // FIXME
51        //super ((int) ch.size () / 2, (int) ch.size () / 2, 0, 0);
52        super (0, 0, 0, 0);
53      this.ch = ch;      this.ch = ch;
54      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");  
     }  
55    }    }
56    public MappedShortFileBuffer(MappedShortFileBuffer b)    public MappedShortFileBuffer(MappedShortFileBuffer b)
57    {    {
58        super (b.capacity (), b.limit (), b.position (), 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