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.
|
LZO
Deprecated.
|
LZOP
Deprecated.
|
SNAPPY
Deprecated.
|
UNCOMPRESSED
Deprecated.
|
ZIP
Deprecated.
|
ZSTD
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.UNCOMPRESSEDpublic static final CompressedSource.CompressionMode AUTO
Compression.AUTOpublic static final CompressedSource.CompressionMode GZIP
Compression.GZIPpublic static final CompressedSource.CompressionMode BZIP2
Compression.BZIP2public static final CompressedSource.CompressionMode ZIP
Compression.ZIPpublic static final CompressedSource.CompressionMode ZSTD
Compression.ZSTDpublic static final CompressedSource.CompressionMode LZO
Compression.LZOpublic static final CompressedSource.CompressionMode LZOP
Compression.LZOPpublic static final CompressedSource.CompressionMode DEFLATE
Compression.DEFLATEpublic static final CompressedSource.CompressionMode SNAPPY
Compression.SNAPPYpublic 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.DecompressingChannelFactorycreateDecompressingChannel in interface CompressedSource.DecompressingChannelFactoryjava.io.IOExceptionpublic static boolean isCompressed(java.lang.String filename)