summaryrefslogtreecommitdiff
path: root/gnu/java/nio/FileChannelImpl.java
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/java/nio/FileChannelImpl.java')
-rw-r--r--gnu/java/nio/FileChannelImpl.java28
1 files changed, 11 insertions, 17 deletions
diff --git a/gnu/java/nio/FileChannelImpl.java b/gnu/java/nio/FileChannelImpl.java
index c252d0bc4..8db961c44 100644
--- a/gnu/java/nio/FileChannelImpl.java
+++ b/gnu/java/nio/FileChannelImpl.java
@@ -160,23 +160,17 @@ public class FileChannelImpl extends FileChannel
return res;
}
-
-
- public MappedByteBuffer map(java.nio.channels.FileChannel.MapMode mode,
- long position,
- int size) throws IOException
- {
- int cmode = mode.m;
-
- address = nio_mmap_file(fd, position, size, cmode);
-
- length = size;
-
- // System.out.println("file mapped" + address + "length="+length);
-
- buf = new MappedByteFileBuffer(this);
- return buf;
- }
+ public MappedByteBuffer map (FileChannel.MapMode mode, long position,
+ long size)
+ throws IOException
+ {
+// int cmode = mode.m;
+// address = nio_mmap_file (fd, position, size, cmode);
+// length = size;
+// buf = new MappedByteFileBuffer (this);
+// return buf;
+ return null;
+ }
static MappedByteBuffer create_direct_mapped_buffer(long address,
long length)