Save This Page
Home » openjdk-7 » sun » nio » ch » [javadoc | source]
sun.nio.ch
class: SocketChannelImpl [javadoc | source]
java.lang.Object
   java.nio.channels.spi.AbstractInterruptibleChannel
      java.nio.channels.SelectableChannel
         java.nio.channels.spi.AbstractSelectableChannel
            java.nio.channels.SocketChannel
               sun.nio.ch.SocketChannelImpl

All Implemented Interfaces:
    SelChImpl, ScatteringByteChannel, GatheringByteChannel, ByteChannel, Channel, InterruptibleChannel

Direct Known Subclasses:
    InheritedSocketChannelImpl

An implementation of SocketChannels
Field Summary
public static final  int SHUT_RD     
public static final  int SHUT_WR     
public static final  int SHUT_RDWR     
Constructor:
 SocketChannelImpl(SelectorProvider sp) throws IOException 
 SocketChannelImpl(SelectorProvider sp,
    FileDescriptor fd,
    InetSocketAddress remote) throws IOException 
Method from sun.nio.ch.SocketChannelImpl Summary:
bind,   connect,   ensureOpenAndUnconnected,   finishConnect,   getFD,   getFDVal,   implCloseSelectableChannel,   implConfigureBlocking,   isBound,   isConnected,   isConnectionPending,   isInputOpen,   isOutputOpen,   kill,   localAddress,   options,   read,   read,   remoteAddress,   shutdownInput,   shutdownOutput,   socket,   toString,   translateAndSetInterestOps,   translateAndSetReadyOps,   translateAndUpdateReadyOps,   translateReadyOps,   write,   write,   write0
Methods from java.nio.channels.SocketChannel:
connect,   finishConnect,   isConnected,   isConnectionPending,   open,   open,   read,   read,   read,   socket,   validOps,   write,   write,   write
Methods from java.nio.channels.spi.AbstractSelectableChannel:
blockingLock,   configureBlocking,   isBlocking,   isRegistered,   keyFor,   provider,   register
Methods from java.nio.channels.SelectableChannel:
blockingLock,   configureBlocking,   isBlocking,   isRegistered,   keyFor,   provider,   register,   register,   validOps
Methods from java.nio.channels.spi.AbstractInterruptibleChannel:
close,   isOpen
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from sun.nio.ch.SocketChannelImpl Detail:
 public  void bind(SocketAddress local) throws IOException 
 public boolean connect(SocketAddress sa) throws IOException 
  void ensureOpenAndUnconnected() throws IOException 
 public boolean finishConnect() throws IOException 
 public FileDescriptor getFD() 
 public int getFDVal() 
 protected  void implCloseSelectableChannel() throws IOException 
 protected  void implConfigureBlocking(boolean block) throws IOException 
 public boolean isBound() 
 public boolean isConnected() 
 public boolean isConnectionPending() 
 public boolean isInputOpen() 
 public boolean isOutputOpen() 
 public  void kill() throws IOException 
 public SocketAddress localAddress() 
 public SocketOpts options() 
 public int read(ByteBuffer buf) throws IOException 
 public long read(ByteBuffer[] dsts,
    int offset,
    int length) throws IOException 
 public SocketAddress remoteAddress() 
 public  void shutdownInput() throws IOException 
 public  void shutdownOutput() throws IOException 
 public Socket socket() 
 public String toString() 
 public  void translateAndSetInterestOps(int ops,
    SelectionKeyImpl sk) 
    Translates an interest operation set into a native poll event set
 public boolean translateAndSetReadyOps(int ops,
    SelectionKeyImpl sk) 
 public boolean translateAndUpdateReadyOps(int ops,
    SelectionKeyImpl sk) 
 public boolean translateReadyOps(int ops,
    int initialOps,
    SelectionKeyImpl sk) 
    Translates native poll revent ops into a ready operation ops
 public int write(ByteBuffer buf) throws IOException 
 public long write(ByteBuffer[] srcs,
    int offset,
    int length) throws IOException 
 public long write0(ByteBuffer[] bufs) throws IOException