< prev index next >
src/java.base/unix/classes/sun/nio/ch/FileDispatcherImpl.java
Print this page
@@ -28,10 +28,12 @@
import java.io.FileDescriptor;
import java.io.IOException;
class FileDispatcherImpl extends FileDispatcher {
+ private int pageSize = -1;
+
static {
IOUtil.load();
init();
}
@@ -50,10 +52,24 @@
long readv(FileDescriptor fd, long address, int len) throws IOException {
return readv0(fd, address, len);
}
+ int readDirect(FileDescriptor fd, long address, int len) throws IOException {
+ return readDirect0(fd, address, len);
+ }
+
+ int preadDirect(FileDescriptor fd, long address, int len, long position)
+ throws IOException
+ {
+ return preadDirect0(fd, address, len, position);
+ }
+
+ long readvDirect(FileDescriptor fd, long address, int len) throws IOException {
+ return readvDirect0(fd, address, len);
+ }
+
int write(FileDescriptor fd, long address, int len) throws IOException {
return write0(fd, address, len);
}
int pwrite(FileDescriptor fd, long address, int len, long position)
@@ -66,10 +82,26 @@
throws IOException
{
return writev0(fd, address, len);
}
+ int writeDirect(FileDescriptor fd, long address, int len) throws IOException {
+ return writeDirect0(fd, address, len);
+ }
+
+ int pwriteDirect(FileDescriptor fd, long address, int len, long position)
+ throws IOException
+ {
+ return pwriteDirect0(fd, address, len, position);
+ }
+
+ long writevDirect(FileDescriptor fd, long address, int len)
+ throws IOException
+ {
+ return writevDirect0(fd, address, len);
+ }
+
int force(FileDescriptor fd, boolean metaData) throws IOException {
return force0(fd, metaData);
}
int truncate(FileDescriptor fd, long size) throws IOException {
@@ -121,19 +153,37 @@
long position) throws IOException;
static native long readv0(FileDescriptor fd, long address, int len)
throws IOException;
+ static native int readDirect0(FileDescriptor fd, long address, int len)
+ throws IOException;
+
+ static native int preadDirect0(FileDescriptor fd, long address, int len,
+ long position) throws IOException;
+
+ static native long readvDirect0(FileDescriptor fd, long address, int len)
+ throws IOException;
+
static native int write0(FileDescriptor fd, long address, int len)
throws IOException;
static native int pwrite0(FileDescriptor fd, long address, int len,
long position) throws IOException;
static native long writev0(FileDescriptor fd, long address, int len)
throws IOException;
+ static native int writeDirect0(FileDescriptor fd, long address, int len)
+ throws IOException;
+
+ static native int pwriteDirect0(FileDescriptor fd, long address, int len,
+ long position) throws IOException;
+
+ static native long writevDirect0(FileDescriptor fd, long address, int len)
+ throws IOException;
+
static native int force0(FileDescriptor fd, boolean metaData)
throws IOException;
static native int truncate0(FileDescriptor fd, long size)
throws IOException;
@@ -151,7 +201,6 @@
static native void preClose0(FileDescriptor fd) throws IOException;
static native void closeIntFD(int fd) throws IOException;
static native void init();
-
}
< prev index next >