public class GZIPCompression extends java.lang.Object implements Compressor
Constructor and Description |
---|
GZIPCompression() |
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
getInputStream(java.io.InputStream file)
Get the input stream for the compression.
|
java.io.OutputStream |
getOutputStream(java.io.OutputStream file)
Get the output stream from the compression.
|
public java.io.InputStream getInputStream(java.io.InputStream file) throws java.io.IOException
Compressor
getInputStream
in interface Compressor
file
- The file input stream for the file.java.io.IOException
- An IOException if one occurs.public java.io.OutputStream getOutputStream(java.io.OutputStream file) throws java.io.IOException
Compressor
getOutputStream
in interface Compressor
file
- The file output stream for the file.java.io.IOException
- An IOException if one occurs.