- 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-onlyByteBuffer
representing the currently available chunk.boolean
Returns true if this source is final and no more decode operations are to be expected.default boolean
Returnstrue
if this source has remaining bytes.default void
pullBytes
(ByteBuffer dst) Pullsmin(this.remaining(), dst.remaining())
bytes from this source to the given destination buffer.long
Returns the total number of bytes remaining in this source.
-
Method Details
-
currentSource
ByteBuffer currentSource()Returns a read-onlyByteBuffer
representing 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()Returnstrue
if this source has remaining bytes. -
finalSource
boolean finalSource()Returns true if this source is final and no more decode operations are to be expected.
-