public enum ArchiveType extends Enum<ArchiveType>
| Modifier and Type | Method and Description |
|---|---|
String |
getExtension() |
boolean |
matches(String filesname) |
static ArchiveType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ArchiveType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ArchiveType TAR_GZ
public static final ArchiveType TAR_XZ
public static final ArchiveType ZIP
public static ArchiveType[] values()
for (ArchiveType c : ArchiveType.values()) System.out.println(c);
public static ArchiveType 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 String getExtension()
public boolean matches(String filesname)
Copyright © 2016–2017. All rights reserved.