public enum ArchiveCompression extends Enum<ArchiveCompression>
Modifier and Type | Class and Description |
---|---|
static class |
ArchiveCompression.TarCompressionMethod
Valid Modes for Compression
|
Modifier and Type | Method and Description |
---|---|
static ArchiveCompression |
fromFileName(String filename) |
String |
getFileSuffix() |
ArchiveCompression.TarCompressionMethod |
getTarCompressionMethod() |
static ArchiveCompression |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ArchiveCompression[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
OutputStream |
wrapOutputStream(OutputStream outputStream) |
public static final ArchiveCompression none
public static final ArchiveCompression gzip
public static final ArchiveCompression bzip2
public static ArchiveCompression[] values()
for (ArchiveCompression c : ArchiveCompression.values()) System.out.println(c);
public static ArchiveCompression valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic ArchiveCompression.TarCompressionMethod getTarCompressionMethod()
public String getFileSuffix()
public OutputStream wrapOutputStream(OutputStream outputStream) throws IOException
IOException
public static ArchiveCompression fromFileName(String filename)
Copyright © 2021. All rights reserved.