java.lang.AutoCloseable, java.nio.channels.ByteChannel, java.nio.channels.Channel, java.io.Closeable, java.nio.channels.ReadableByteChannel, java.nio.channels.WritableByteChannelAbstractClientProxyChannel, AbstractWrappedByteChannel, SSLSocketChannel, SSLSocketChannel2public interface WrappedByteChannel
extends java.nio.channels.ByteChannel
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
isBlocking() |
This function returns the blocking state of the channel
|
boolean |
isNeedRead() |
returns whether readMore should be called to fetch data which has been decoded but not yet been returned.
|
boolean |
isNeedWrite() |
returns whether writeMore should be called write additional data.
|
int |
readMore(java.nio.ByteBuffer dst) |
This function does not read data from the underlying channel at all.
|
void |
writeMore() |
Gets called when
isNeedWrite() ()} requires a additional rite |
boolean isNeedWrite()
void writeMore()
throws java.io.IOException
isNeedWrite() ()} requires a additional ritejava.io.IOException - may be thrown due to an error while writingboolean isNeedRead()
ReadableByteChannel.read(ByteBuffer),
readMore(ByteBuffer)int readMore(java.nio.ByteBuffer dst)
throws java.io.IOException
ReadableByteChannel.read(ByteBuffer).dst - the destiny of the readjava.io.IOException - when a error occurred during unwrappingboolean isBlocking()