public class Decoder extends Object
| Constructor and Description |
|---|
Decoder(ReadableByteChannel source,
int inputBufferSize)
Creates a Decoder wrapper.
|
| Modifier and Type | Method and Description |
|---|---|
static DirectDecompress |
decompress(byte[] data)
Decodes the given data buffer.
|
static byte[] |
decompress(byte[] data,
int offset,
int length)
Decodes the given data buffer starting at offset till length.
|
void |
enableEagerOutput() |
public Decoder(ReadableByteChannel source, int inputBufferSize) throws IOException
source - underlying sourceinputBufferSize - read buffer sizeIOException - If any failure during initializationpublic static DirectDecompress decompress(byte[] data) throws IOException
data - byte array of data to be decodedDirectDecompress instanceIOException - If an error occurs during decodingpublic void enableEagerOutput()
public static byte[] decompress(byte[] data,
int offset,
int length)
throws IOException
IOExceptionCopyright © 2024. All rights reserved.