Interface AsyncDecoder.ByteSource
- Enclosing interface:
AsyncDecoder
public static interface AsyncDecoder.ByteSource
A source of bytes for reading the compressed stream as
ByteBuffer chunks.-
Method Summary
Modifier and TypeMethodDescriptionReturns a read-onlyByteBufferrepresenting the currently available chunk.booleanReturns true if this source is final and no more decode operations are to be expected.default booleanReturnstrueif this source has remaining bytes.default voidpullBytes(ByteBuffer dst) Pullsmin(this.remaining(), dst.remaining())bytes from this source to the given destination buffer.longReturns the total number of bytes remaining in this source.
-
Method Details
-
currentSource
ByteBuffer currentSource()Returns a read-onlyByteBufferrepresenting the currently available chunk. -
pullBytes
Pullsmin(this.remaining(), dst.remaining())bytes from this source to the given destination buffer. -
remaining
long remaining()Returns the total number of bytes remaining in this source. -
hasRemaining
default boolean hasRemaining()Returnstrueif this source has remaining bytes. -
finalSource
boolean finalSource()Returns true if this source is final and no more decode operations are to be expected.
-