public enum MimeType extends Enum<MimeType>
SignatureField
Modifier and Type | Method and Description |
---|---|
String |
getMimeType() |
static MimeType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MimeType |
valueOfMimeType(String mimeType)
|
static MimeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static MimeType[] values()
for (MimeType c : MimeType.values()) System.out.println(c);
public static MimeType 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 static MimeType valueOfMimeType(String mimeType) throws NullPointerException, IllegalArgumentException
mimeType
- MIME-Type as String
MimeType
NullPointerException
- If mimeType is null
IllegalArgumentException
- If no matching MimeType
was foundCopyright © 2017 Max Schuster. All Rights Reserved.