public abstract class OioByteStreamChannel extends AbstractOioByteChannel
AbstractChannel.AbstractUnsafeChannel.UnsafeSO_TIMEOUT| 限定符 | 构造器和说明 |
|---|---|
protected |
OioByteStreamChannel(Channel parent)
Create a new instance
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
activate(java.io.InputStream is,
java.io.OutputStream os)
Activate this instance.
|
protected int |
available()
Return the number of bytes ready to read from the underlying Socket.
|
protected void |
doClose()
Close the
Channel |
protected int |
doReadBytes(ByteBuf buf)
Read bytes from the underlying Socket.
|
protected void |
doWriteBytes(ByteBuf buf)
Write the data which is hold by the
ByteBuf to the underlying Socket. |
protected void |
doWriteFileRegion(FileRegion region)
Write the data which is hold by the
FileRegion to the underlying Socket. |
boolean |
isActive()
Return
true if the Channel is active and so connected. |
checkInputShutdown, doRead, doWrite, filterOutboundMessage, isInputShutdown, metadatadoBeginRead, doConnect, isCompatible, isReadPending, newUnsafe, setReadPendingalloc, bind, bind, close, close, closeFuture, compareTo, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, doBind, doDeregister, doDisconnect, doRegister, doShutdownOutput, equals, eventLoop, flush, hashCode, invalidateLocalAddress, invalidateRemoteAddress, isRegistered, isWritable, localAddress, localAddress0, newChannelPipeline, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, parent, pipeline, read, remoteAddress, remoteAddress0, toString, unsafe, voidPromise, write, write, writeAndFlush, writeAndFlushattrattrprotected final void activate(java.io.InputStream is,
java.io.OutputStream os)
isActive() will return true.public boolean isActive()
Channeltrue if the Channel is active and so connected.protected int available()
AbstractOioByteChannelavailable 在类中 AbstractOioByteChannelprotected int doReadBytes(ByteBuf buf) throws java.lang.Exception
AbstractOioByteChanneldoReadBytes 在类中 AbstractOioByteChannelbuf - the ByteBuf into which the read bytes will be writtenjava.lang.Exception - is thrown if an error occurredprotected void doWriteBytes(ByteBuf buf) throws java.lang.Exception
AbstractOioByteChannelByteBuf to the underlying Socket.doWriteBytes 在类中 AbstractOioByteChannelbuf - the ByteBuf which holds the data to transferjava.lang.Exception - is thrown if an error occurredprotected void doWriteFileRegion(FileRegion region) throws java.lang.Exception
AbstractOioByteChannelFileRegion to the underlying Socket.doWriteFileRegion 在类中 AbstractOioByteChannelregion - the FileRegion which holds the data to transferjava.lang.Exception - is thrown if an error occurredprotected void doClose()
throws java.lang.Exception
AbstractChannelChanneldoClose 在类中 AbstractChanneljava.lang.Exception