Package org.codehaus.plexus.archiver.tar
Enum TarArchiver.TarCompressionMethod
- java.lang.Object
-
- java.lang.Enum<TarArchiver.TarCompressionMethod>
-
- org.codehaus.plexus.archiver.tar.TarArchiver.TarCompressionMethod
-
- All Implemented Interfaces:
Serializable
,Comparable<TarArchiver.TarCompressionMethod>
- Enclosing class:
- TarArchiver
public static enum TarArchiver.TarCompressionMethod extends Enum<TarArchiver.TarCompressionMethod>
Valid Modes for Compression attribute to Tar Task
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TarArchiver.TarCompressionMethod
valueOf(String name)
Returns the enum constant of this type with the specified name.static TarArchiver.TarCompressionMethod[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
none
public static final TarArchiver.TarCompressionMethod none
-
gzip
public static final TarArchiver.TarCompressionMethod gzip
-
bzip2
public static final TarArchiver.TarCompressionMethod bzip2
-
snappy
public static final TarArchiver.TarCompressionMethod snappy
-
xz
public static final TarArchiver.TarCompressionMethod xz
-
zstd
public static final TarArchiver.TarCompressionMethod zstd
-
-
Method Detail
-
values
public static TarArchiver.TarCompressionMethod[] 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 (TarArchiver.TarCompressionMethod c : TarArchiver.TarCompressionMethod.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TarArchiver.TarCompressionMethod 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
-
-