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, prependContentsWith
protected CompressedStreamStore(byte[] data, int offset, int length) throws java.io.IOException
java.io.IOException
protected byte[] _getCompressedContents()
protected byte[] _getBlockHeader()
protected void copyBlockHeaderToContents()
copyBlockHeaderToContents
in class StreamStore
public static byte[][] decompress(byte[] data, int offset, int length) throws java.io.IOException
java.io.IOException
Copyright 2020 The Apache Software Foundation or its licensors, as applicable.