public interface Compressor
The GNU Lesser General Public License for details.
Modifier and Type | Field and Description |
---|---|
static int |
BUF_SIZE
The size to read/write when unzipping a compressed byte array of unknown
size.
|
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.
|
static final int BUF_SIZE
ByteArrayOutputStream compress() throws IOException
IOException
- if an exception is encounteredByteArrayOutputStream uncompress() throws IOException
IOException
- if an exception is encounteredByteArrayOutputStream uncompress(int expectedLength) throws IOException
expectedLength
- the size of the result bufferIOException
- if an exception is encountered