@Deprecated public abstract class OioByteStreamChannel extends AbstractOioByteChannel
AbstractChannel.AbstractUnsafe
Channel.Unsafe
SO_TIMEOUT
Modifier | Constructor and Description |
---|---|
protected |
OioByteStreamChannel(Channel parent)
Deprecated.
Create a new instance
|
Modifier and Type | Method and Description |
---|---|
protected void |
activate(InputStream is,
OutputStream os)
Deprecated.
Activate this instance.
|
protected int |
available()
Deprecated.
Return the number of bytes ready to read from the underlying Socket.
|
protected void |
doClose()
Deprecated.
Close the
Channel |
protected int |
doReadBytes(io.netty.buffer.ByteBuf buf)
Deprecated.
Read bytes from the underlying Socket.
|
protected void |
doWriteBytes(io.netty.buffer.ByteBuf buf)
Deprecated.
Write the data which is hold by the
ByteBuf to the underlying Socket. |
protected void |
doWriteFileRegion(FileRegion region)
Deprecated.
Write the data which is hold by the
FileRegion to the underlying Socket. |
boolean |
isActive()
Deprecated.
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
protected final void activate(InputStream is, OutputStream os)
isActive()
will return true
.public boolean isActive()
Channel
true
if the Channel
is active and so connected.protected int available()
AbstractOioByteChannel
available
in class AbstractOioByteChannel
protected int doReadBytes(io.netty.buffer.ByteBuf buf) throws Exception
AbstractOioByteChannel
doReadBytes
in class AbstractOioByteChannel
buf
- the ByteBuf
into which the read bytes will be writtenException
- is thrown if an error occurredprotected void doWriteBytes(io.netty.buffer.ByteBuf buf) throws Exception
AbstractOioByteChannel
ByteBuf
to the underlying Socket.doWriteBytes
in class AbstractOioByteChannel
buf
- the ByteBuf
which holds the data to transferException
- is thrown if an error occurredprotected void doWriteFileRegion(FileRegion region) throws Exception
AbstractOioByteChannel
FileRegion
to the underlying Socket.doWriteFileRegion
in class AbstractOioByteChannel
region
- the FileRegion
which holds the data to transferException
- is thrown if an error occurredprotected void doClose() throws Exception
AbstractChannel
Channel
doClose
in class AbstractChannel
Exception
Copyright © 2008–2023 The Netty Project. All rights reserved.