< prev index next >

src/java.base/share/classes/sun/nio/ch/IOUtil.java

Print this page

        

*** 41,51 **** */ static final int IOV_MAX; private IOUtil() { } // No instantiation ! static int write(FileDescriptor fd, ByteBuffer src, long position, NativeDispatcher nd) throws IOException { return write(fd, src, position, false, -1, nd); } --- 41,51 ---- */ static final int IOV_MAX; private IOUtil() { } // No instantiation ! public static int write(FileDescriptor fd, ByteBuffer src, long position, NativeDispatcher nd) throws IOException { return write(fd, src, position, false, -1, nd); }
*** 121,131 **** throws IOException { return write(fd, bufs, 0, bufs.length, false, -1, nd); } ! static long write(FileDescriptor fd, ByteBuffer[] bufs, int offset, int length, NativeDispatcher nd) throws IOException { return write(fd, bufs, offset, length, false, -1, nd); } --- 121,131 ---- throws IOException { return write(fd, bufs, 0, bufs.length, false, -1, nd); } ! public static long write(FileDescriptor fd, ByteBuffer[] bufs, int offset, int length, NativeDispatcher nd) throws IOException { return write(fd, bufs, offset, length, false, -1, nd); }
*** 214,224 **** } } } } ! static int read(FileDescriptor fd, ByteBuffer dst, long position, NativeDispatcher nd) throws IOException { return read(fd, dst, position, false, -1, nd); } --- 214,224 ---- } } } } ! public static int read(FileDescriptor fd, ByteBuffer dst, long position, NativeDispatcher nd) throws IOException { return read(fd, dst, position, false, -1, nd); }
*** 284,294 **** throws IOException { return read(fd, bufs, 0, bufs.length, false, -1, nd); } ! static long read(FileDescriptor fd, ByteBuffer[] bufs, int offset, int length, NativeDispatcher nd) throws IOException { return read(fd, bufs, offset, length, false, -1, nd); } --- 284,294 ---- throws IOException { return read(fd, bufs, 0, bufs.length, false, -1, nd); } ! public static long read(FileDescriptor fd, ByteBuffer[] bufs, int offset, int length, NativeDispatcher nd) throws IOException { return read(fd, bufs, offset, length, false, -1, nd); }
< prev index next >