public class CompressionAlgorithm
extends java.lang.Object
Constructor and Description |
---|
CompressionAlgorithm(java.lang.String name,
java.lang.String inputStreamClassFqn,
java.lang.String outputStreamClassFqn) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAlgorithmIdentifier()
Gets this algorithm's identifier.
|
CompressionMode |
getCompressionMode()
Gets this algorithm's compression mode.
|
static java.util.Map<java.lang.String,CompressionAlgorithm> |
getDefaultInstances()
Returns a list of the compression algorithms supported natively.
|
java.lang.String |
getInputStreamClassName()
Gets this algorithm's
InputStream implementation class name that can be used to inflate data. |
static java.lang.String |
getNormalizedAlgorithmName(java.lang.String name)
Returns the normalized compression algorithm identifier.
|
java.lang.String |
getOutputStreamClassName()
Gets this algorithm's
OutputStream implementation class name that can be used to deflate data. |
public CompressionAlgorithm(java.lang.String name, java.lang.String inputStreamClassFqn, java.lang.String outputStreamClassFqn)
public static java.util.Map<java.lang.String,CompressionAlgorithm> getDefaultInstances()
public static java.lang.String getNormalizedAlgorithmName(java.lang.String name)
name
- the non-normalized compression algorithm identifier.name
is an already normalized identifier or an unknown alias then the returned value is the same as the input, otherwise the
normalized algorithm identifier is returned.public java.lang.String getAlgorithmIdentifier()
public CompressionMode getCompressionMode()
CompressionMode
public java.lang.String getInputStreamClassName()
InputStream
implementation class name that can be used to inflate data.InputStream
that knows how to inflate data.public java.lang.String getOutputStreamClassName()
OutputStream
implementation class name that can be used to deflate data.OutputStream
that knows how to deflate data.