Package adams.core.io
Enum TarUtils.Compression
- java.lang.Object
-
- java.lang.Enum<TarUtils.Compression>
-
- adams.core.io.TarUtils.Compression
-
- All Implemented Interfaces:
Serializable
,Comparable<TarUtils.Compression>
- Enclosing class:
- TarUtils
public static enum TarUtils.Compression extends Enum<TarUtils.Compression>
The type of compression to use.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TarUtils.Compression
valueOf(String name)
Returns the enum constant of this type with the specified name.static TarUtils.Compression[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AUTO
public static final TarUtils.Compression AUTO
automatic.
-
NONE
public static final TarUtils.Compression NONE
no compression.
-
GZIP
public static final TarUtils.Compression GZIP
gzip.
-
BZIP2
public static final TarUtils.Compression BZIP2
bzip2.
-
LZF
public static final TarUtils.Compression LZF
lzf.
-
LZMA
public static final TarUtils.Compression LZMA
lzma.
-
XZ
public static final TarUtils.Compression XZ
XZ.
-
ZSTD
public static final TarUtils.Compression ZSTD
Zstd.
-
-
Method Detail
-
values
public static TarUtils.Compression[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TarUtils.Compression c : TarUtils.Compression.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TarUtils.Compression valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-