|
||||||||||
| 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.
The GNU Lesser General Public License for details.| 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 - if an exception is encountered
ByteArrayOutputStream uncompress()
throws IOException
IOException - if an exception is encountered
ByteArrayOutputStream uncompress(int expectedLength)
throws IOException
expectedLength - the size of the result buffer
IOException - if an exception is encountered
|
Copyright ยจ 2003-2015 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||