public final class CompressedStreamStore extends StreamStore
| Modifier and Type | Method and Description |
|---|---|
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
|
static int |
getMaxRecordLength() |
static void |
setMaxRecordLength(int length) |
_getContents, getContents, prependContentsWithpublic static void setMaxRecordLength(int length)
length - the max record length allowed for CompressedStreamStorepublic static int getMaxRecordLength()
protected void copyBlockHeaderToContents()
copyBlockHeaderToContents in class StreamStorepublic static byte[][] decompress(byte[] data,
int offset,
int length)
throws java.io.IOException
java.io.IOExceptionCopyright 2022 The Apache Software Foundation or its licensors, as applicable.