-
- Enclosing interface:
- AsyncDecoder
public static interface AsyncDecoder.ByteSourceA source of bytes for reading the compressed stream asByteBufferchunks.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.nio.ByteBuffercurrentSource()Returns a read-onlyByteBufferrepresenting the currently available chunk.booleanfinalSource()Returns true if this source is final and no more decode operations are to be expected.default booleanhasRemaining()Returnstrueif this source has remaining bytes.default voidpullBytes(java.nio.ByteBuffer dst)Pullsmin(this.remaining(), dst.remaining())bytes from this source to the given destination buffer.longremaining()Returns the total number of bytes remaining in this source.
-
-
-
Method Detail
-
currentSource
java.nio.ByteBuffer currentSource()
Returns a read-onlyByteBufferrepresenting the currently available chunk.
-
pullBytes
default void pullBytes(java.nio.ByteBuffer dst)
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.
-
-