MappedByteFileBuffer.java, [...]: Removed
2003-06-20 Michael Koch <konqueror@gmx.de> * gnu/java/nio/MappedByteFileBuffer.java, gnu/java/nio/natMappedByteFileBuffer.cc: Removed * java/nio/MappedByteBufferImpl.java: New file. * gnu/java/nio/FileChannelImpl.java: Use MappedByteBufferImpl instead of MappedByteFileBuffer. * Makefile.am (ordinary_java_source_files): Removed gnu/java/nio/MappedByteFileBuffer.java and added java/nio/MappedByteBufferImpl.java. (nat_source_files): Removed gnu/java/nio/natMappedByteFileBuffer.cc * Makefile.in: Regenerated. From-SVN: r68259
This commit is contained in:
parent
27a3e49454
commit
c52c9fec50
7 changed files with 308 additions and 615 deletions
|
@ -46,6 +46,7 @@ import java.io.IOException;
|
|||
import java.io.RandomAccessFile;
|
||||
import java.nio.ByteBuffer;
|
||||
import java.nio.MappedByteBuffer;
|
||||
import java.nio.MappedByteBufferImpl;
|
||||
import java.nio.channels.ClosedChannelException;
|
||||
import java.nio.channels.FileChannel;
|
||||
import java.nio.channels.FileLock;
|
||||
|
@ -260,7 +261,7 @@ public class FileChannelImpl extends FileChannel
|
|||
int cmode = mode.m;
|
||||
map_address = nio_mmap_file (position, size, cmode);
|
||||
length = (int) size;
|
||||
buf = new MappedByteFileBuffer (this);
|
||||
buf = new MappedByteBufferImpl (this);
|
||||
return buf;
|
||||
}
|
||||
|
||||
|
@ -271,7 +272,7 @@ public class FileChannelImpl extends FileChannel
|
|||
FileChannelImpl ch = new FileChannelImpl ();
|
||||
ch.map_address = map_address;
|
||||
ch.length = (int) length;
|
||||
ch.buf = new MappedByteFileBuffer (ch);
|
||||
ch.buf = new MappedByteBufferImpl (ch);
|
||||
return ch.buf;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue