public interface WrappedByteChannel
extends java.nio.channels.ByteChannel
| 限定符和类型 | 方法和说明 |
|---|---|
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()