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, prependContentsWith
public static void setMaxRecordLength(int length)
length
- the max record length allowed for CompressedStreamStorepublic static int getMaxRecordLength()
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 2022 The Apache Software Foundation or its licensors, as applicable.