| java.lang.Object org.apache.tomcat.util.net.NioChannel
All known Subclasses: org.apache.tomcat.util.net.SecureNioChannel,
NioChannel | public class NioChannel implements ByteChannel(Code) | | Base class for a SocketChannel wrapper used by the endpoint.
This way, logic for a SSL socket channel remains the same as for
a non SSL, making sure we don't need to code for any exception cases.
author: Filip Hanik version: 1.0 |
bufHandler | protected ApplicationBufferHandler bufHandler(Code) | | |
emptyBuf | protected static ByteBuffer emptyBuf(Code) | | |
poller | protected Poller poller(Code) | | |
flush | public boolean flush(boolean block, Selector s, long timeout) throws IOException(Code) | | returns true if the network buffer has
been flushed out and is empty
boolean |
getAttachment | public Object getAttachment(boolean remove)(Code) | | |
getBufHandler | public ApplicationBufferHandler getBufHandler()(Code) | | getBufHandler
ApplicationBufferHandler |
getBufferSize | public int getBufferSize()(Code) | | |
getPoller | public Poller getPoller()(Code) | | |
isClosing | public boolean isClosing()(Code) | | isClosing
boolean |
isInitHandshakeComplete | public boolean isInitHandshakeComplete()(Code) | | isInitHandshakeComplete
boolean |
isOpen | public boolean isOpen()(Code) | | Tells whether or not this channel is open.
true if, and only if, this channel is open |
read | public int read(ByteBuffer dst) throws IOException(Code) | | Reads a sequence of bytes from this channel into the given buffer.
Parameters: dst - The buffer into which bytes are to be transferred The number of bytes read, possibly zero, or -1 if the channel has reached end-of-stream throws: IOException - If some other I/O error occurs |
setPoller | public void setPoller(Poller poller)(Code) | | |
write | public int write(ByteBuffer src) throws IOException(Code) | | Writes a sequence of bytes to this channel from the given buffer.
Parameters: src - The buffer from which bytes are to be retrieved The number of bytes written, possibly zero throws: IOException - If some other I/O error occurs |
|
|