public final class CompressedStreamStore extends StreamStore
| Modifier | Constructor and Description |
|---|---|
protected |
CompressedStreamStore(byte[] data,
int offset,
int length)
Creates a new compressed StreamStore, which will handle
the decompression.
|
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
_getBlockHeader() |
protected byte[] |
_getCompressedContents() |
protected void |
copyBlockHeaderToContents()
Some kinds of streams expect their 4 byte header to be
on the front of the contents.
|
static byte[][] |
decompress(byte[] data,
int offset,
int length)
Decompresses the given data, returning it as header + contents
|
_getContents, getContents, prependContentsWithprotected CompressedStreamStore(byte[] data,
int offset,
int length)
throws java.io.IOException
java.io.IOExceptionprotected byte[] _getCompressedContents()
protected byte[] _getBlockHeader()
protected void copyBlockHeaderToContents()
copyBlockHeaderToContents in class StreamStorepublic static byte[][] decompress(byte[] data,
int offset,
int length)
throws java.io.IOException
java.io.IOExceptionCopyright 2018 The Apache Software Foundation or its licensors, as applicable.