< prev index next >

src/java.base/unix/classes/sun/nio/ch/SocketDispatcher.java

Print this page

        

*** 31,61 **** /** * Allows different platforms to call different native methods * for read and write operations. */ ! class SocketDispatcher extends NativeDispatcher { ! 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 { return FileDispatcherImpl.readv0(fd, address, len); } ! 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 { return FileDispatcherImpl.writev0(fd, address, len); } ! void close(FileDescriptor fd) throws IOException { FileDispatcherImpl.close0(fd); } ! void preClose(FileDescriptor fd) throws IOException { FileDispatcherImpl.preClose0(fd); } } --- 31,61 ---- /** * Allows different platforms to call different native methods * for read and write operations. */ ! public class SocketDispatcher extends NativeDispatcher { ! protected int read(FileDescriptor fd, long address, int len) throws IOException { return FileDispatcherImpl.read0(fd, address, len); } ! protected long readv(FileDescriptor fd, long address, int len) throws IOException { return FileDispatcherImpl.readv0(fd, address, len); } ! protected int write(FileDescriptor fd, long address, int len) throws IOException { return FileDispatcherImpl.write0(fd, address, len); } ! protected long writev(FileDescriptor fd, long address, int len) throws IOException { return FileDispatcherImpl.writev0(fd, address, len); } ! protected void close(FileDescriptor fd) throws IOException { FileDispatcherImpl.close0(fd); } ! public void preClose(FileDescriptor fd) throws IOException { FileDispatcherImpl.preClose0(fd); } }
< prev index next >