Package org.apache.poi.hdgf.streams
Class CompressedStreamStore
- java.lang.Object
-
- org.apache.poi.hdgf.streams.StreamStore
-
- org.apache.poi.hdgf.streams.CompressedStreamStore
-
public final class CompressedStreamStore extends StreamStore
A StreamStore where the data on-disk is compressed, using the crazy Visio LZW
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcopyBlockHeaderToContents()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 + contentsstatic intgetMaxRecordLength()static voidsetMaxRecordLength(int length)-
Methods inherited from class org.apache.poi.hdgf.streams.StreamStore
_getContents, getContents, prependContentsWith
-
-
-
-
Method Detail
-
setMaxRecordLength
public static void setMaxRecordLength(int length)
- Parameters:
length- the max record length allowed for CompressedStreamStore
-
getMaxRecordLength
public static int getMaxRecordLength()
- Returns:
- the max record length allowed for CompressedStreamStore
-
copyBlockHeaderToContents
protected void copyBlockHeaderToContents()
Some kinds of streams expect their 4 byte header to be on the front of the contents. They can call this to have it sorted.- Overrides:
copyBlockHeaderToContentsin classStreamStore
-
decompress
public static byte[][] decompress(byte[] data, int offset, int length) throws IOExceptionDecompresses the given data, returning it as header + contents- Throws:
IOException
-
-