|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Compressor
The Compressor Interface defines all operations for the compress/decompress actions.
| Method Summary | |
|---|---|
InputStream |
compress(File input)
Compresses this file and returns an InputStream to the compressed File |
InputStream |
compress(InputStream input)
Compresses this InputStream and returns an InputStream to the compressed file |
void |
compressTo(File input,
File output)
Creates the file "output" with the compressed content of file "input" |
void |
compressTo(InputStream input,
OutputStream output)
Compresses the input stream and writes the compressed bytes to the output stream. |
void |
compressToHere(File input)
Compresses the file input and creates a file in the same directory with the default file extension in its name. |
InputStream |
decompress(File input)
Decompresses a file and returns an InputStream |
InputStream |
decompress(InputStream input)
Decompresses a file and returns an InputStream |
void |
decompressTo(File input,
File output)
Decompresses this file and writes the decompressed byte to the output file |
void |
decompressTo(InputStream input,
OutputStream output)
Decompresses this file and writes the decompressed file to the output-stream |
| Method Detail |
|---|
InputStream compress(File input)
throws CompressException
input - File to compress
CompressException - if the Compressor reports an error
InputStream compress(InputStream input)
throws CompressException
input - Stream to compress
CompressException - if the Compressor reports an error
void compressToHere(File input)
throws CompressException
input - the file to compress
CompressException - if the Compressor reports an error
void compressTo(File input,
File output)
throws CompressException
input - the file to compressoutput - the file to create
CompressException - if the Compressor reports an error
void compressTo(InputStream input,
OutputStream output)
throws CompressException
input - InputStream to compress tooutput - OutputStream to which the byte shall be written
CompressException - if the Compressor reports an error
InputStream decompress(File input)
throws CompressException
input - file to decompress
CompressException
InputStream decompress(InputStream input)
throws CompressException
input - inputstream to decompress
CompressException
void decompressTo(File input,
File output)
throws CompressException
input - File to decompressoutput - File to write the decompressed bytes to
CompressException - if the Compressor reports an error
void decompressTo(InputStream input,
OutputStream output)
throws CompressException
input - Stream to decompressoutput - Stream to write the decompressed bytes to
CompressException - if the Compressor reports an error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||