public static enum ArchiveUtils.ArchiveType extends java.lang.Enum<ArchiveUtils.ArchiveType>
Enum Constant and Description |
---|
EAR |
JAR |
TAR |
TBZ |
TGZ |
UNKNOWN |
WAR |
ZIP |
Modifier and Type | Field and Description |
---|---|
static java.util.Set<ArchiveUtils.ArchiveType> |
ZIP_ARCHIVES
Zip format archives used by Java.
|
Modifier and Type | Method and Description |
---|---|
static ArchiveUtils.ArchiveType |
of(java.lang.String filename) |
java.lang.String |
toString() |
static ArchiveUtils.ArchiveType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ArchiveUtils.ArchiveType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ArchiveUtils.ArchiveType TAR
public static final ArchiveUtils.ArchiveType TGZ
public static final ArchiveUtils.ArchiveType TBZ
public static final ArchiveUtils.ArchiveType ZIP
public static final ArchiveUtils.ArchiveType JAR
public static final ArchiveUtils.ArchiveType WAR
public static final ArchiveUtils.ArchiveType EAR
public static final ArchiveUtils.ArchiveType UNKNOWN
public static java.util.Set<ArchiveUtils.ArchiveType> ZIP_ARCHIVES
public static ArchiveUtils.ArchiveType[] values()
for (ArchiveUtils.ArchiveType c : ArchiveUtils.ArchiveType.values()) System.out.println(c);
public static ArchiveUtils.ArchiveType 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 static ArchiveUtils.ArchiveType of(java.lang.String filename)
public java.lang.String toString()
toString
in class java.lang.Enum<ArchiveUtils.ArchiveType>