Allows different platforms to call different native methods
for read and write operations.
| Method from sun.nio.ch.FileDispatcher Detail: |
void close(FileDescriptor fd) throws IOException {
close0(fd);
}
|
static native void close0(FileDescriptor fd) throws IOException
|
static native void closeByHandle(long fd) throws IOException
|
int pread(FileDescriptor fd,
long address,
int len,
long position,
Object lock) throws IOException {
synchronized(lock) {
return pread0(fd, address, len, position);
}
}
|
static native int pread0(FileDescriptor fd,
long address,
int len,
long position) throws IOException
|
int pwrite(FileDescriptor fd,
long address,
int len,
long position,
Object lock) throws IOException {
synchronized(lock) {
return pwrite0(fd, address, len, position);
}
}
|
static native int pwrite0(FileDescriptor fd,
long address,
int len,
long position) throws IOException
|
int read(FileDescriptor fd,
long address,
int len) throws IOException {
Util.load();
return read0(fd, address, len);
}
|
static native int read0(FileDescriptor fd,
long address,
int len) throws IOException
|
long readv(FileDescriptor fd,
long address,
int len) throws IOException {
return readv0(fd, address, len);
}
|
static native long readv0(FileDescriptor fd,
long address,
int len) throws IOException
|
int write(FileDescriptor fd,
long address,
int len) throws IOException {
return write0(fd, address, len);
}
|
static native int write0(FileDescriptor fd,
long address,
int len) throws IOException
|
long writev(FileDescriptor fd,
long address,
int len) throws IOException {
return writev0(fd, address, len);
}
|
static native long writev0(FileDescriptor fd,
long address,
int len) throws IOException
|