summaryrefslogtreecommitdiff
path: root/gnu/java/nio/FileChannelImpl.java
diff options
context:
space:
mode:
authorMichael Koch <konqueror@gmx.de>2002-12-20 15:34:17 +0000
committerMichael Koch <konqueror@gmx.de>2002-12-20 15:34:17 +0000
commite15a1fdc6868f19b1cecee7ebf2fdd348005de40 (patch)
treeaaaae808e435231bc6c4e6439de3973b7c6b5b3f /gnu/java/nio/FileChannelImpl.java
parent04d81bad859646e82b0a10245bd87884553f9d47 (diff)
downloadclasspath-e15a1fdc6868f19b1cecee7ebf2fdd348005de40.tar.gz
2002-12-20 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/CharBufferImpl.java gnu/java/nio/DoubleBufferImpl.java gnu/java/nio/FileChannelImpl.java gnu/java/nio/FloatBufferImpl.java gnu/java/nio/IntBufferImpl.java gnu/java/nio/LongBufferImpl.java gnu/java/nio/ShortBufferImpl.java: (nio_cast): Removed. (*BufferImpl): Removed. (nio_get_*): Removed. (get_put_*): Removed. (as*Buffer): Removed.
Diffstat (limited to 'gnu/java/nio/FileChannelImpl.java')
-rw-r--r--gnu/java/nio/FileChannelImpl.java55
1 files changed, 50 insertions, 5 deletions
diff --git a/gnu/java/nio/FileChannelImpl.java b/gnu/java/nio/FileChannelImpl.java
index 6b602e1fd..75fefd987 100644
--- a/gnu/java/nio/FileChannelImpl.java
+++ b/gnu/java/nio/FileChannelImpl.java
@@ -45,6 +45,9 @@ import java.io.RandomAccessFile;
import java.nio.ByteBuffer;
import java.nio.MappedByteBuffer;
import java.nio.channels.FileChannel;
+import java.nio.channels.FileLock;
+import java.nio.channels.ReadableByteChannel;
+import java.nio.channels.WritableByteChannel;
/**
* This file is not user visible !
@@ -124,11 +127,6 @@ public class FileChannelImpl extends FileChannel
return s;
}
- public long read (ByteBuffer[] dsts) throws IOException
- {
- return read (dsts, 0, dsts.length);
- }
-
public long read (ByteBuffer[] dsts, int offset, int length)
throws IOException
{
@@ -142,6 +140,11 @@ public class FileChannelImpl extends FileChannel
return result;
}
+ public int read (ByteBuffer src, long position) throws IOException
+ {
+ return 0;
+ }
+
public int write (ByteBuffer src) throws IOException
{
int w = 0;
@@ -171,6 +174,11 @@ public class FileChannelImpl extends FileChannel
}
return res;
}
+
+ public int write (ByteBuffer src, long position) throws IOException
+ {
+ return 0;
+ }
public MappedByteBuffer map (FileChannel.MapMode mode, long position,
long size)
@@ -213,4 +221,41 @@ public class FileChannelImpl extends FileChannel
static native void nio_unmmap_file (int fd, long address, int size);
static native void nio_msync (int fd, long address, int length);
+
+ public FileLock lock (long position, long size, boolean shared) throws IOException
+ {
+ return null;
+ }
+
+ public FileLock tryLock (long position, long size, boolean shared) throws IOException
+ {
+ return null;
+ }
+
+ public long position () throws IOException
+ {
+ return 0;
+ }
+
+ public FileChannel position (long newPosition) throws IOException
+ {
+ return this;
+ }
+
+ public long transferTo (long position, long count, WritableByteChannel target)
+ throws IOException
+ {
+ return 0;
+ }
+
+ public long transferFrom (ReadableByteChannel src, long position, long count)
+ throws IOException
+ {
+ return 0;
+ }
+
+ public FileChannel truncate (long size) throws IOException
+ {
+ return null;
+ }
}