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

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

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

revision 1.13 by mkoch, Wed Jun 18 09:45:00 2003 UTC revision 1.14 by mkoch, Sat Jun 21 11:49:25 2003 UTC
# Line 46  import java.io.IOException; Line 46  import java.io.IOException;
46  import java.io.RandomAccessFile;  import java.io.RandomAccessFile;
47  import java.nio.ByteBuffer;  import java.nio.ByteBuffer;
48  import java.nio.MappedByteBuffer;  import java.nio.MappedByteBuffer;
49  import java.nio.MappedByteFileBuffer;  import java.nio.MappedByteBufferImpl;
50  import java.nio.channels.ClosedChannelException;  import java.nio.channels.ClosedChannelException;
51  import java.nio.channels.FileChannel;  import java.nio.channels.FileChannel;
52  import java.nio.channels.FileLock;  import java.nio.channels.FileLock;
# Line 261  public class FileChannelImpl extends Fil Line 261  public class FileChannelImpl extends Fil
261      int cmode = mode.m;      int cmode = mode.m;
262      map_address = nio_mmap_file (position, size, cmode);      map_address = nio_mmap_file (position, size, cmode);
263      length = (int) size;      length = (int) size;
264      buf = new MappedByteFileBuffer (this);      buf = new MappedByteBufferImpl (this);
265      return buf;      return buf;
266    }    }
267    
# Line 272  public class FileChannelImpl extends Fil Line 272  public class FileChannelImpl extends Fil
272      FileChannelImpl ch = new FileChannelImpl ();      FileChannelImpl ch = new FileChannelImpl ();
273      ch.map_address = map_address;      ch.map_address = map_address;
274      ch.length = (int) length;      ch.length = (int) length;
275      ch.buf = new MappedByteFileBuffer (ch);      ch.buf = new MappedByteBufferImpl (ch);
276      return ch.buf;                            return ch.buf;                      
277    }    }
278    

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

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