Class Decompressor
- java.lang.Object
-
- net.sourceforge.plantuml.code.deflate.Decompressor
-
public final class Decompressor extends java.lang.ObjectDecompresses raw DEFLATE data (without zlib or gzip container) into bytes.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]decompress(BitInputStream in)Reads from the specified input stream, decompress the data, and returns a new byte array.static voiddecompress(BitInputStream in, OutputStreamProtected out)Reads from the specified input stream, decompress the data, and writes to the specified output stream.
-
-
-
Method Detail
-
decompress
public static byte[] decompress(BitInputStream in) throws java.io.IOException, java.util.zip.DataFormatException
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:
java.lang.NullPointerException- if the input stream isnulljava.util.zip.DataFormatException- if the DEFLATE data is malformedjava.io.IOException
-
decompress
public static void decompress(BitInputStream in, OutputStreamProtected out) throws java.io.IOException, java.util.zip.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:
java.lang.NullPointerException- if the input or output stream isnulljava.util.zip.DataFormatException- if the DEFLATE data is malformedjava.io.IOException
-
-