diff options
author | jfrijters <jfrijters> | 2011-08-18 16:06:22 +0400 |
---|---|---|
committer | jfrijters <jfrijters> | 2011-08-18 16:06:22 +0400 |
commit | 4eef39b7c507d518eeb80fc570453e3682d6268d (patch) | |
tree | 94255f12ba2c3383dc0823ed22c88d6d5f67d6fb /openjdk/sun/nio/ch/NativeDispatcher.java | |
parent | 05be269edcd34db64d7cfdcdfc85f62854109ba3 (diff) |
Indirect socket read/write operations via the NativeDispatcher.
Diffstat (limited to 'openjdk/sun/nio/ch/NativeDispatcher.java')
-rw-r--r-- | openjdk/sun/nio/ch/NativeDispatcher.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/openjdk/sun/nio/ch/NativeDispatcher.java b/openjdk/sun/nio/ch/NativeDispatcher.java index 823a101f..7f523265 100644 --- a/openjdk/sun/nio/ch/NativeDispatcher.java +++ b/openjdk/sun/nio/ch/NativeDispatcher.java @@ -26,6 +26,7 @@ package sun.nio.ch; import java.io.*; +import java.nio.ByteBuffer; /** * Allows different platforms to call different native methods @@ -34,6 +35,13 @@ import java.io.*; abstract class NativeDispatcher { + abstract int read(FileDescriptor fd, byte[] buf, int offset, int length) throws IOException; + + abstract int write(FileDescriptor fd, byte[] buf, int offset, int length) throws IOException; + + abstract long read(FileDescriptor fd, ByteBuffer[] bufs, int offset, int length) throws IOException; + + abstract long write(FileDescriptor fd, ByteBuffer[] bufs, int offset, int length) throws IOException; abstract void close(FileDescriptor fd) throws IOException; |