public final class Decompressor
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static byte[] |
decompress(BitInputStream in)
Reads from the specified input stream, decompress the data, and returns a new byte array.
|
static void |
decompress(BitInputStream in,
OutputStreamProtected out)
Reads from the specified input stream, decompress the data, and writes to the specified output stream.
|
public static byte[] decompress(BitInputStream in) throws java.io.IOException, java.util.zip.DataFormatException
in
- the bit input stream to read from (not null
)java.lang.NullPointerException
- if the input stream is null
java.util.zip.DataFormatException
- if the DEFLATE data is malformedjava.io.IOException
public static void decompress(BitInputStream in, OutputStreamProtected out) throws java.io.IOException, java.util.zip.DataFormatException
in
- the bit input stream to read from (not null
)out
- the byte output stream to write to (not null
)java.lang.NullPointerException
- if the input or output stream is null
java.util.zip.DataFormatException
- if the DEFLATE data is malformedjava.io.IOException
Copyright © 2020. All Rights Reserved.