public class ZlibInflater extends Object
| Modifier and Type | Method and Description |
|---|---|
static org.apache.commons.pool2.ObjectPool<ByteArrayHolder> |
getPool()
The ByteArrayHolder pool, that this decoder is using.
|
static ByteArrayHolder |
zlibUncompressBuffer(byte[] compressed,
Integer uncompressedLen)
Convenience method for
zlibUncompressBuffer(byte[], int, Integer). |
static ByteArrayHolder |
zlibUncompressBuffer(byte[] bytes,
int length,
Integer uncompressedLen)
Inflates zLib compressed byte[].
|
public static org.apache.commons.pool2.ObjectPool<ByteArrayHolder> getPool()
zlibUncompressBuffer(byte[], int, Integer), you will need to return the ByteArrayHolder, that
was returned to you, into that pool.public static ByteArrayHolder zlibUncompressBuffer(byte[] compressed, Integer uncompressedLen) throws IOException, DataFormatException, FileParsingException
zlibUncompressBuffer(byte[], int, Integer).
Inflates zLib compressed byte[].compressed - zLib compressed bytesuncompressedLen - length of data in bytes when uncompressed. Optional.getPool()). You MUST return
the byte holder back to the pool after usage.IOException - should never happen, ByteArrayOutputStream is in-memoryDataFormatException - in case of malformed input byte arrayFileParsingExceptionpublic static ByteArrayHolder zlibUncompressBuffer(byte[] bytes, int length, Integer uncompressedLen) throws IOException, DataFormatException, FileParsingException
bytes - zLib compressed bytes in a holder, with properly set positionlength - length of data in the input array to be useduncompressedLen - length of data in bytes when uncompressed. Optional.getPool()). You MUST return
the byte holder back to the pool after usage.IOException - should never happen, ByteArrayOutputStream is in-memoryDataFormatException - in case of malformed input byte arrayFileParsingExceptionCopyright © 2017. All rights reserved.