From a9033eae89f91de683e47b93db5d3e307ea4df2e Mon Sep 17 00:00:00 2001 From: Michael Koch Date: Sat, 16 Nov 2002 15:22:16 +0000 Subject: 2002-11-16 Michael Koch * 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. --- gnu/java/nio/FileChannelImpl.java | 28 +++++++++++----------------- 1 file changed, 11 insertions(+), 17 deletions(-) (limited to 'gnu/java/nio/FileChannelImpl.java') 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) -- cgit v1.2.1