summaryrefslogtreecommitdiff
path: root/gnu/java/nio/FileChannelImpl.java
diff options
context:
space:
mode:
authorMichael Koch <konqueror@gmx.de>2002-11-16 15:22:16 +0000
committerMichael Koch <konqueror@gmx.de>2002-11-16 15:22:16 +0000
commita9033eae89f91de683e47b93db5d3e307ea4df2e (patch)
treedfc5874e6fc8282b68c63d8d2ea8a5d101aa533e /gnu/java/nio/FileChannelImpl.java
parent958eae0ac05de7e524920b93b8566ee173b5b86b (diff)
downloadclasspath-a9033eae89f91de683e47b93db5d3e307ea4df2e.tar.gz
2002-11-16 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/FileChannelImpl.java (map): Last argument must be of type long, made it a dummy method for now. * java/nio/channels/FileChannel.java: Documentation added. (MapMode): Documentation added. (MapMode.toString): Reformated. (FileChannel): Documentation added. (map): Last argument must be type long, documentation added. (write): New method. (write): Documentation added. (read): Documentation added. (implCloseChannel): Documentation added. (force): Reformated documentation. * java/nio/channels/Selector.java (open): Added "throws IOException". * java/nio/channels/spi/SelectorProvider.java (SelectorProvider): Added SecurityManager check, documentation added. * java/nio/charset/Charset.java (encode): Use cached encoder object. (decode): Use cached decoder object.
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)