@Deprecated public abstract class OioByteStreamChannel extends AbstractOioByteChannel
AbstractChannel.AbstractUnsafe
Channel.Unsafe
SO_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. |
doRead, doWrite, filterOutboundMessage, isInputShutdown, metadata, shutdownInput
clearReadPending, doBeginRead, doConnect, isCompatible, isReadPending, newUnsafe, setReadPending
alloc, bind, bind, bytesBeforeUnwritable, bytesBeforeWritable, close, close, closeFuture, compareTo, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, doBind, doDeregister, doDisconnect, doRegister, doShutdownOutput, equals, eventLoop, flush, hashCode, id, invalidateLocalAddress, invalidateRemoteAddress, isRegistered, isWritable, localAddress, localAddress0, maxMessagesPerWrite, newChannelPipeline, newFailedFuture, newId, newProgressivePromise, newPromise, newSucceededFuture, parent, pipeline, read, remoteAddress, remoteAddress0, toString, unsafe, validateFileRegion, voidPromise, write, write, writeAndFlush, writeAndFlush
attr, hasAttr
attr, hasAttr
protected final void activate(java.io.InputStream is, java.io.OutputStream os)
isActive()
will return true
.public boolean isActive()
Channel
true
if the Channel
is active and so connected.protected int available()
AbstractOioByteChannel
available
在类中 AbstractOioByteChannel
protected int doReadBytes(ByteBuf buf) throws java.lang.Exception
AbstractOioByteChannel
doReadBytes
在类中 AbstractOioByteChannel
buf
- 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
AbstractOioByteChannel
ByteBuf
to the underlying Socket.doWriteBytes
在类中 AbstractOioByteChannel
buf
- the ByteBuf
which holds the data to transferjava.lang.Exception
- is thrown if an error occurredprotected void doWriteFileRegion(FileRegion region) throws java.lang.Exception
AbstractOioByteChannel
FileRegion
to the underlying Socket.doWriteFileRegion
在类中 AbstractOioByteChannel
region
- the FileRegion
which holds the data to transferjava.lang.Exception
- is thrown if an error occurredprotected void doClose() throws java.lang.Exception
AbstractChannel
Channel
doClose
在类中 AbstractChannel
java.lang.Exception