|
||||||||||
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 | |
---|---|
java.io.InputStream |
compress(java.io.File input)
Compresses this file and returns an InputStream to the compressed File |
java.io.InputStream |
compress(java.io.InputStream input)
Compresses this InputStream and returns an InputStream to the compressed file |
void |
compressTo(java.io.File input,
java.io.File output)
Creates the file "output" with the compressed content of file "input" |
void |
compressTo(java.io.InputStream input,
java.io.OutputStream output)
Compresses the input stream and writes the compressed bytes to the output stream. |
void |
compressToHere(java.io.File input)
Compresses the file input and creates a file in the same directory with the default file extension in its name. |
java.io.InputStream |
decompress(java.io.File input)
Decompresses a file and returns an InputStream |
java.io.InputStream |
decompress(java.io.InputStream input)
Decompresses a file and returns an InputStream |
void |
decompressTo(java.io.File input,
java.io.File output)
Decompresses this file and writes the decompressed byte to the output file |
void |
decompressTo(java.io.InputStream input,
java.io.OutputStream output)
Decompresses this file and writes the decompressed file to the output-stream |
Method Detail |
---|
java.io.InputStream compress(java.io.File input) throws CompressException
input
- File to compress
CompressException
- if the Compressor reports an errorjava.io.InputStream compress(java.io.InputStream input) throws CompressException
input
- Stream to compress
CompressException
- if the Compressor reports an errorvoid compressToHere(java.io.File input) throws CompressException
input
- the file to compress
CompressException
- if the Compressor reports an errorvoid compressTo(java.io.File input, java.io.File output) throws CompressException
input
- the file to compressoutput
- the file to create
CompressException
- if the Compressor reports an errorvoid compressTo(java.io.InputStream input, java.io.OutputStream output) throws CompressException
input
- InputStream to compress tooutput
- OutputStream to which the byte shall be written
CompressException
- if the Compressor reports an errorjava.io.InputStream decompress(java.io.File input) throws CompressException
input
- file to decompress
CompressException
java.io.InputStream decompress(java.io.InputStream input) throws CompressException
input
- inputstream to decompress
CompressException
void decompressTo(java.io.File input, java.io.File output) throws CompressException
input
- File to decompressoutput
- File to write the decompressed bytes to
CompressException
- if the Compressor reports an errorvoid decompressTo(java.io.InputStream input, java.io.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 |