Compression
instead@Deprecated public static enum CompressedSource.CompressionMode extends java.lang.Enum<CompressedSource.CompressionMode> implements CompressedSource.DecompressingChannelFactory
Enum Constant and Description |
---|
AUTO
Deprecated.
|
BZIP2
Deprecated.
|
DEFLATE
Deprecated.
|
GZIP
Deprecated.
|
UNCOMPRESSED
Deprecated.
|
ZIP
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
java.nio.channels.ReadableByteChannel |
createDecompressingChannel(java.nio.channels.ReadableByteChannel channel)
Deprecated.
Given a channel, create a channel that decompresses the content read from the channel.
|
static boolean |
isCompressed(java.lang.String filename)
Deprecated.
Returns whether the file's extension matches of one of the known compression formats.
|
boolean |
matches(java.lang.String fileName)
Deprecated.
Returns
true if the given file name implies that the contents are compressed
according to the compression embodied by this factory. |
static CompressedSource.CompressionMode |
valueOf(java.lang.String name)
Deprecated.
Returns the enum constant of this type with the specified name.
|
static CompressedSource.CompressionMode[] |
values()
Deprecated.
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CompressedSource.CompressionMode UNCOMPRESSED
Compression.UNCOMPRESSED
public static final CompressedSource.CompressionMode AUTO
Compression.AUTO
public static final CompressedSource.CompressionMode GZIP
Compression.GZIP
public static final CompressedSource.CompressionMode BZIP2
Compression.BZIP2
public static final CompressedSource.CompressionMode ZIP
Compression.ZIP
public static final CompressedSource.CompressionMode DEFLATE
Compression.DEFLATE
public static CompressedSource.CompressionMode[] values()
for (CompressedSource.CompressionMode c : CompressedSource.CompressionMode.values()) System.out.println(c);
public static CompressedSource.CompressionMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic boolean matches(java.lang.String fileName)
true
if the given file name implies that the contents are compressed
according to the compression embodied by this factory.public java.nio.channels.ReadableByteChannel createDecompressingChannel(java.nio.channels.ReadableByteChannel channel) throws java.io.IOException
CompressedSource.DecompressingChannelFactory
createDecompressingChannel
in interface CompressedSource.DecompressingChannelFactory
java.io.IOException
public static boolean isCompressed(java.lang.String filename)