public static enum ArchiveManager.ARCHIVE_TYPE extends java.lang.Enum<ArchiveManager.ARCHIVE_TYPE>
Modifier and Type | Field and Description |
---|---|
short |
metadataID |
java.lang.String[] |
mimeTypes |
Modifier and Type | Method and Description |
---|---|
static ArchiveManager.ARCHIVE_TYPE |
getArchiveType(short type) |
static ArchiveManager.ARCHIVE_TYPE |
getArchiveType(java.lang.String type)
If the given MIME type is an archive type that we can deal with,
get its archive type number (see the ARCHIVE_ constants in Metadata).
|
static ArchiveManager.ARCHIVE_TYPE |
getDefault() |
static boolean |
isUsableArchiveType(java.lang.String type)
Is the given MIME type an archive type that we can deal with?
|
static boolean |
isValidMetadataID(short id) |
static ArchiveManager.ARCHIVE_TYPE |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ArchiveManager.ARCHIVE_TYPE[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ArchiveManager.ARCHIVE_TYPE ZIP
public static final ArchiveManager.ARCHIVE_TYPE TAR
public final short metadataID
public final java.lang.String[] mimeTypes
public static ArchiveManager.ARCHIVE_TYPE[] values()
for (ArchiveManager.ARCHIVE_TYPE c : ArchiveManager.ARCHIVE_TYPE.values()) System.out.println(c);
public static ArchiveManager.ARCHIVE_TYPE 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 boolean isValidMetadataID(short id)
public static boolean isUsableArchiveType(java.lang.String type)
public static ArchiveManager.ARCHIVE_TYPE getArchiveType(java.lang.String type)
public static ArchiveManager.ARCHIVE_TYPE getArchiveType(short type)
public static ArchiveManager.ARCHIVE_TYPE getDefault()