Save This Page
Home » openjdk-7 » sun » nio » ch » [javadoc | source]
sun.nio.ch
public class: ChannelInputStream [javadoc | source]
java.lang.Object
   java.io.InputStream
      sun.nio.ch.ChannelInputStream

All Implemented Interfaces:
    Closeable

Direct Known Subclasses:
    SocketInputStream

This class is defined here rather than in java.nio.channels.Channels so that code can be shared with SocketAdaptor.
Field Summary
protected final  ReadableByteChannel ch     
Constructor:
 public ChannelInputStream(ReadableByteChannel ch) 
Method from sun.nio.ch.ChannelInputStream Summary:
close,   read,   read,   read,   read
Methods from java.io.InputStream:
available,   close,   mark,   markSupported,   read,   read,   read,   reset,   skip
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from sun.nio.ch.ChannelInputStream Detail:
 public  void close() throws IOException 
 public synchronized int read() throws IOException 
 protected int read(ByteBuffer bb) throws IOException 
 public static int read(ReadableByteChannel ch,
    ByteBuffer bb,
    boolean block) throws IOException 
 public synchronized int read(byte[] bs,
    int off,
    int len) throws IOException