public class XZ extends AbstractCompressor
The GNU Lesser General Public License for details.
input
BUF_SIZE
Constructor and Description |
---|
XZ(InputStream input)
Create a GZip that is capable of transforming the input.
|
Modifier and Type | Method and Description |
---|---|
ByteArrayOutputStream |
compress()
Compresses the input and provides the result.
|
ByteArrayOutputStream |
uncompress()
Uncompresses the input and provides the result.
|
ByteArrayOutputStream |
uncompress(int expectedLength)
Uncompresses the input and provides the result.
|
public XZ(InputStream input)
input
- to compress or uncompress.public ByteArrayOutputStream compress() throws IOException
Compressor
IOException
- if an exception is encounteredpublic ByteArrayOutputStream uncompress() throws IOException
Compressor
IOException
- if an exception is encounteredpublic ByteArrayOutputStream uncompress(int expectedLength) throws IOException
Compressor
expectedLength
- the size of the result bufferIOException
- if an exception is encountered