Package org.apache.tomcat.util.buf
Interface ByteChunk.ByteInputChannel
-
- All Known Implementing Classes:
InputBuffer
- Enclosing class:
- ByteChunk
public static interface ByteChunk.ByteInputChannelInput interface, used when the buffer is empty. Same as java.nio.channels.ReadableByteChannel
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.nio.ByteBuffergetByteBuffer()Obtain the ByteBuffer this channel is targeting.intrealReadBytes()Read new bytes.
-
-
-
Method Detail
-
realReadBytes
int realReadBytes() throws java.io.IOExceptionRead new bytes.- Returns:
- The number of bytes read
- Throws:
java.io.IOException- If an I/O error occurs during reading
-
getByteBuffer
java.nio.ByteBuffer getByteBuffer()
Obtain the ByteBuffer this channel is targeting.- Returns:
- the ByteBuffer this channel is targeting
-
-