This class exists as a convenience for
implementors of new selectable channel classes: it defines common
methods of SelectableChannel in terms of protected
methods whose names begin with impl. Application
programmers should never need to use or subclass this class.
Figure 13-44. java.nio.channels.spi.AbstractSelectableChannel
public abstract class
AbstractSelectableChannel extends java.nio.channels.
SelectableChannel {
// Protected Constructors
protected
AbstractSelectableChannel (SelectorProvider
provider );
// Public Methods Overriding SelectableChannel
public final Object
blockingLock ( );
public final java.nio.channels.SelectableChannel
configureBlocking (boolean
block ) throws java.io.IOException;
public final boolean
isBlocking ( );
public final boolean
isRegistered ( );
public final java.nio.channels.SelectionKey
keyFor (java.nio.channels.
Selector
sel );
public final SelectorProvider
provider ( );
public final java.nio.channels.SelectionKey
register (java.nio.channels.
Selector
sel , int
ops , Object
att )
throws java.nio.channels.ClosedChannelException;
// Protected Methods Overriding AbstractInterruptibleChannel
protected final void
implCloseChannel ( ) throws java.io.IOException;
// Protected Instance Methods
protected abstract void
implCloseSelectableChannel ( )
throws java.io.IOException;
protected abstract void
implConfigureBlocking (boolean
block )
throws java.io.IOException;
}
java.nio.channels.DatagramChannel,
java.nio.channels.Pipe.SinkChannel,
java.nio.channels.Pipe.SourceChannel,
java.nio.channels.ServerSocketChannel,
java.nio.channels.SocketChannel