public final class CompressedStreamStore extends StreamStore
Modifier | Constructor | Description |
---|---|---|
protected |
CompressedStreamStore(byte[] data,
int offset,
int length) |
Creates a new compressed StreamStore, which will handle
the decompression.
|
Modifier and Type | Method | 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
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
_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 2018 The Apache Software Foundation or its licensors, as applicable.