|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<Metadata.MimeType>
org.basex.build.fs.parser.Metadata.MimeType
public static enum Metadata.MimeType
Available MIME types.
| Enum Constant Summary | |
|---|---|
BMP
BMP. |
|
JPG
JPG. |
|
KML
KML. |
|
MP3
MP3. |
|
PNG
PNG. |
|
TXT
Plaintext. |
|
UNKNOWN
Unknown media. |
|
XML
XML. |
|
| Method Summary | |
|---|---|
byte[] |
get()
Returns the xml element name as byte array. |
byte[] |
getDefaultSuffix()
Returns the default file suffix for the MIME type. |
static Metadata.MimeType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Metadata.MimeType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final Metadata.MimeType UNKNOWN
public static final Metadata.MimeType TXT
public static final Metadata.MimeType XML
public static final Metadata.MimeType KML
public static final Metadata.MimeType MP3
public static final Metadata.MimeType PNG
public static final Metadata.MimeType JPG
public static final Metadata.MimeType BMP
| Method Detail |
|---|
public static Metadata.MimeType[] values()
for (Metadata.MimeType c : Metadata.MimeType.values()) System.out.println(c);
public static Metadata.MimeType 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 name
java.lang.NullPointerException - if the argument is nullpublic byte[] get()
public byte[] getDefaultSuffix()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||