< prev index next >
src/java.base/unix/classes/sun/nio/ch/SocketDispatcher.java
Print this page
@@ -31,31 +31,31 @@
/**
* Allows different platforms to call different native methods
* for read and write operations.
*/
-class SocketDispatcher extends NativeDispatcher {
+public class SocketDispatcher extends NativeDispatcher {
- int read(FileDescriptor fd, long address, int len) throws IOException {
+ protected int read(FileDescriptor fd, long address, int len) throws IOException {
return FileDispatcherImpl.read0(fd, address, len);
}
- long readv(FileDescriptor fd, long address, int len) throws IOException {
+ protected long readv(FileDescriptor fd, long address, int len) throws IOException {
return FileDispatcherImpl.readv0(fd, address, len);
}
- int write(FileDescriptor fd, long address, int len) throws IOException {
+ protected int write(FileDescriptor fd, long address, int len) throws IOException {
return FileDispatcherImpl.write0(fd, address, len);
}
- long writev(FileDescriptor fd, long address, int len) throws IOException {
+ protected long writev(FileDescriptor fd, long address, int len) throws IOException {
return FileDispatcherImpl.writev0(fd, address, len);
}
- void close(FileDescriptor fd) throws IOException {
+ protected void close(FileDescriptor fd) throws IOException {
FileDispatcherImpl.close0(fd);
}
- void preClose(FileDescriptor fd) throws IOException {
+ public void preClose(FileDescriptor fd) throws IOException {
FileDispatcherImpl.preClose0(fd);
}
}
< prev index next >