|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Compressor
A compressor provides the ability to compress and uncompress block text. Implementing classes are expected to provide a way to supply the input.
for license details.
The copyright to this program is held by it's authors.
Field Summary | |
---|---|
static int |
BUF_SIZE
The size to read/write when unzipping a compressed byte array of unknown size. |
Method Summary | |
---|---|
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. |
Field Detail |
---|
static final int BUF_SIZE
Method Detail |
---|
ByteArrayOutputStream compress() throws IOException
IOException
ByteArrayOutputStream uncompress() throws IOException
IOException
ByteArrayOutputStream uncompress(int expectedLength) throws IOException
expectedLength
- the size of the result buffer
IOException
|
Copyright ? 2003-2011 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |