| Modifier and Type | Field and Description |
|---|---|
| pack-priv ByteBuffer | |
| pack-priv boolean | |
| private final DecoderJNI. | |
| pack-priv boolean | |
| private static final ByteBuffer | |
| private final ReadableByteChannel |
| Access | Constructor and Description |
|---|---|
| public | Decoder(ReadableByteChannel
underlying source source, int read buffer size inputBufferSize)Creates a Decoder wrapper. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| pack-priv void | |
| pack-priv int | |
| pack-priv int | Returns: -1 if stream is finished, or number of bytes available in read buffer (> 0)Continue decoding. |
| public static DirectDecompress | Returns: DirectDecompress instancebyte array of data to be decoded data)Decodes the given data buffer. |
| public static byte[] | decompress(byte[] data, int offset, int length)
Decodes the given data buffer starting at offset till length. |
| pack-priv void | |
| public void | |
| private void |
| buffer | back to summary |
|---|---|
| pack-priv ByteBuffer buffer | |
| closed | back to summary |
|---|---|
| pack-priv boolean closed | |
| decoder | back to summary |
|---|---|
| private final DecoderJNI. | |
| eager | back to summary |
|---|---|
| pack-priv boolean eager | |
| EMPTY_BUFFER | back to summary |
|---|---|
| private static final ByteBuffer EMPTY_BUFFER | |
| source | back to summary |
|---|---|
| private final ReadableByteChannel source | |
| Decoder | back to summary |
|---|---|
| public Decoder(ReadableByteChannel source, int inputBufferSize) throws IOException Creates a Decoder wrapper.
| |
| attachDictionary | back to summary |
|---|---|
pack-priv void attachDictionary(ByteBuffer dictionary) throws IOException
| |
| close | back to summary |
|---|---|
pack-priv void close() throws IOException
| |
| consume | back to summary |
|---|---|
pack-priv int consume(ByteBuffer dst)
| |
| decode | back to summary |
|---|---|
| pack-priv int decode() throws IOException Continue decoding.
| |
| decompress | back to summary |
|---|---|
| public static DirectDecompress decompress(byte[] data) throws IOException Decodes the given data buffer.
| |
| decompress | back to summary |
|---|---|
| public static byte[] decompress(byte[] data, int offset, int length) throws IOException Decodes the given data buffer starting at offset till length.
| |
| discard | back to summary |
|---|---|
pack-priv void discard(int length)
| |
| enableEagerOutput | back to summary |
|---|---|
public void enableEagerOutput()
| |
| fail | back to summary |
|---|---|
private void fail(String message) throws IOException
| |