public enum SignatureType extends Enum<SignatureType>
Signature| Enum Constant and Description |
|---|
EXTENSION
Signature type for a file extension, i.e., a sequence of
characters following a period character in a file name.
|
FILETYPE
Signature type for a Macintosh OS file type.
|
MAGIC
Signature type for a "magic number" stored in the file.
|
| Modifier and Type | Field and Description |
|---|---|
String |
name
A String name for the type, used for reporting.
|
| Modifier and Type | Method and Description |
|---|---|
String |
toString() |
static SignatureType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SignatureType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SignatureType EXTENSION
public static final SignatureType FILETYPE
public static final SignatureType MAGIC
public final String name
public static SignatureType[] values()
for (SignatureType c : SignatureType.values()) System.out.println(c);
public static SignatureType 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 toString()
toString in class Enum<SignatureType>Copyright © 2008–2019 The Open Preservation Foundation. All rights reserved.