public interface Compressor
An input and output stream is required. You must create an input stream and output stream on top of this interface in order to use a custom algorithm. If the algorithm you are using already has an input and output stream implementation, then you can just simply return them here.
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
getInputStream(java.io.InputStream inputStream)
Get the input stream for the compression.
|
java.io.OutputStream |
getOutputStream(java.io.OutputStream outputStream)
Get the output stream from the compression.
|
java.io.InputStream getInputStream(java.io.InputStream inputStream) throws java.io.IOException
inputStream
- The file input stream for the file.java.io.IOException
- An IOException if one occurs.java.io.OutputStream getOutputStream(java.io.OutputStream outputStream) throws java.io.IOException
outputStream
- The file output stream for the file.java.io.IOException
- An IOException if one occurs.