Save This Page
Home » openjdk-7 » sun » nio » ch » [javadoc | source]
sun.nio.ch
class: IOUtil [javadoc | source]
java.lang.Object
   sun.nio.ch.IOUtil
File-descriptor based I/O utilities that are shared by NIO classes.
Method from sun.nio.ch.IOUtil Summary:
configureBlocking,   drain,   fdVal,   initIDs,   makePipe,   newFD,   randomBytes,   read,   read,   read,   setfdVal,   write,   write,   write
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from sun.nio.ch.IOUtil Detail:
 static native  void configureBlocking(FileDescriptor fd,
    boolean blocking) throws IOException
 static native boolean drain(int fd) throws IOException
 static native int fdVal(FileDescriptor fd)
 static native  void initIDs()
 static native long makePipe(boolean blocking)
    Returns two file descriptors for a pipe encoded in a long. The read end of the pipe is returned in the high 32 bits, while the write end is returned in the low 32 bits.
 static FileDescriptor newFD(int i) 
 static native boolean randomBytes(byte[] someBytes)
 static long read(FileDescriptor fd,
    ByteBuffer[] bufs,
    NativeDispatcher nd) throws IOException 
 static int read(FileDescriptor fd,
    ByteBuffer dst,
    long position,
    NativeDispatcher nd,
    Object lock) throws IOException 
 static long read(FileDescriptor fd,
    ByteBuffer[] bufs,
    int offset,
    int length,
    NativeDispatcher nd) throws IOException 
 static native  void setfdVal(FileDescriptor fd,
    int value)
 static long write(FileDescriptor fd,
    ByteBuffer[] bufs,
    NativeDispatcher nd) throws IOException 
 static int write(FileDescriptor fd,
    ByteBuffer src,
    long position,
    NativeDispatcher nd,
    Object lock) throws IOException 
 static long write(FileDescriptor fd,
    ByteBuffer[] bufs,
    int offset,
    int length,
    NativeDispatcher nd) throws IOException