Class Decompressor
java.lang.Object
net.sourceforge.plantuml.code.deflate.Decompressor
Decompresses raw DEFLATE data (without zlib or gzip container) into bytes.
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]Reads from the specified input stream, decompress the data, and returns a new byte array.static voidReads from the specified input stream, decompress the data, and writes to the specified output stream.
-
Method Details
-
decompress
Reads from the specified input stream, decompress the data, and returns a new byte array.- Parameters:
in- the bit input stream to read from (notnull)- Throws:
NullPointerException- if the input stream isnullDataFormatException- if the DEFLATE data is malformedIOException
-
decompress
public static void decompress(BitInputStream in, OutputStreamProtected out) throws IOException, DataFormatException Reads from the specified input stream, decompress the data, and writes to the specified output stream.- Parameters:
in- the bit input stream to read from (notnull)out- the byte output stream to write to (notnull)- Throws:
NullPointerException- if the input or output stream isnullDataFormatException- if the DEFLATE data is malformedIOException
-