< prev index next >
src/java.base/share/classes/sun/nio/ch/NativeDispatcher.java
Print this page
*** 36,45 ****
--- 36,51 ----
{
abstract int read(FileDescriptor fd, long address, int len)
throws IOException;
+ int readDirect(FileDescriptor fd, long address, int len)
+ throws IOException
+ {
+ throw new IOException("Operation Unsupported");
+ }
+
/**
* Returns {@code true} if pread/pwrite needs to be synchronized with
* position sensitive methods.
*/
boolean needsPositionLock() {
*** 50,74 ****
--- 56,110 ----
throws IOException
{
throw new IOException("Operation Unsupported");
}
+ int preadDirect(FileDescriptor fd, long address, int len, long position)
+ throws IOException
+ {
+ throw new IOException("Operation Unsupported");
+ }
+
abstract long readv(FileDescriptor fd, long address, int len)
throws IOException;
+ long readvDirect(FileDescriptor fd, long address, int len)
+ throws IOException
+ {
+ throw new IOException("Operation Unsupported");
+ }
+
abstract int write(FileDescriptor fd, long address, int len)
throws IOException;
+ int writeDirect(FileDescriptor fd, long address, int len)
+ throws IOException
+ {
+ throw new IOException("Operation Unsupported");
+ }
+
int pwrite(FileDescriptor fd, long address, int len, long position)
throws IOException
{
throw new IOException("Operation Unsupported");
}
+ int pwriteDirect(FileDescriptor fd, long address, int len, long position)
+ throws IOException
+ {
+ throw new IOException("Operation Unsupported");
+ }
+
abstract long writev(FileDescriptor fd, long address, int len)
throws IOException;
+ long writevDirect(FileDescriptor fd, long address, int len)
+ throws IOException
+ {
+ throw new IOException("Operation Unsupported");
+ }
+
abstract void close(FileDescriptor fd) throws IOException;
// Prepare the given fd for closing by duping it to a known internal fd
// that's already closed. This is necessary on some operating systems
// (Solaris and Linux) to prevent fd recycling.
< prev index next >