public interface WrappedByteChannel extends ByteChannel
| Modifier and Type | Method and 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(ByteBuffer dst)
This function does not read data from the underlying channel at all.
|
void |
writeMore()
Gets called when
isNeedWrite() ()} requires a additional rite |
readwriteboolean isNeedWrite()
void writeMore()
throws IOException
isNeedWrite() ()} requires a additional riteIOException - may be thrown due to an error while writingboolean isNeedRead()
ReadableByteChannel.read(ByteBuffer),
readMore(ByteBuffer)int readMore(ByteBuffer dst) throws IOException
ReadableByteChannel.read(ByteBuffer).dst - the destiny of the readIOException - when a error occurred during unwrappingboolean isBlocking()
Copyright © 2017. All rights reserved.