Interface ByteChunk.ByteInputChannel
- All Known Implementing Classes:
InputBuffer
- Enclosing class:
ByteChunk
public static interface ByteChunk.ByteInputChannel
Input interface, used when the buffer is empty. Same as java.nio.channels.ReadableByteChannel
-
Method Summary
Modifier and TypeMethodDescriptionObtain the ByteBuffer this channel is targeting.intRead new bytes.
-
Method Details
-
realReadBytes
Read new bytes.- Returns:
- The number of bytes read
- Throws:
IOException- If an I/O error occurs during reading
-
getByteBuffer
ByteBuffer getByteBuffer()Obtain the ByteBuffer this channel is targeting.- Returns:
- the ByteBuffer this channel is targeting
-