public interface CompressionProvider
| Modifier and Type | Method and Description | 
|---|---|
CompressionInputStream | 
createInputStream(InputStream in)
Creates an input stream that decompresses data (according to the provider's implementation) 
 | 
CompressionOutputStream | 
createOutputStream(OutputStream out)
Creates an output stream that compresses data (according to the provider's implementation) 
 | 
String | 
getDefaultExtension()
Gets the default file extension for this provider. 
 | 
String | 
getDescription()
Gets the name of this provider. 
 | 
String | 
getName()
Gets the name of this provider. 
 | 
boolean | 
supportsInput()
Whether this compression provider supports input streams 
 | 
boolean | 
supportsOutput()
Whether this compression provider supports output streams 
 | 
CompressionInputStream createInputStream(InputStream in) throws IOException
in - An existing input stream to wrapIOExceptionboolean supportsInput()
CompressionOutputStream createOutputStream(OutputStream out) throws IOException
out - An existing output stream to wrapIOExceptionboolean supportsOutput()
String getName()
String getDescription()
String getDefaultExtension()