public class Zip extends AbstractCompressor
The GNU Lesser General Public License for details.inputBUF_SIZE| Constructor and Description |
|---|
Zip(InputStream input)
Create a Zip 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 Zip(InputStream input)
input - to compress or uncompress.public ByteArrayOutputStream compress() throws IOException
CompressorIOException - if an exception is encounteredpublic ByteArrayOutputStream uncompress() throws IOException
CompressorIOException - if an exception is encounteredpublic ByteArrayOutputStream uncompress(int expectedLength) throws IOException
CompressorexpectedLength - the size of the result bufferIOException - if an exception is encountered