|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Compressor
This interface describes the operations to compress and decompress a file, using a variety of algorithms.
| Method Summary | |
|---|---|
String |
compress(InputStream in,
OutputStream out)
Reads a series of bytes from an inputstream and executes a compression algorithm over those bytes, writing the compressed data to the specified outputStream. |
String |
decompress(InputStream in,
OutputStream out)
Reads a series of bytes from compressed data and executes a decompression algorithm over those bytes, writing the decompressed data to the specified outputStream. |
| Method Detail |
|---|
String compress(InputStream in,
OutputStream out)
in - the InputStream for the dataout - the outputStream for writing the compressed data
String decompress(InputStream in,
OutputStream out)
in - the InputStream for the compressed dataout - the outputStream for writing the decompressed data
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||