public enum MimeType extends Enum<MimeType>
| Enum Constant and Description |
|---|
APPLICATION_CCR |
APPLICATION_PDF |
APPLICATION_XML |
MULTIPART |
MULTIPART_MIXED |
TEXT_CDA_XML |
TEXT_HTML |
TEXT_PLAIN |
TEXT_XML |
UNKNOWN |
| Modifier and Type | Method and Description |
|---|---|
String |
getSuffix()
Return the suffix.
|
String |
getType()
Return the type.
|
static MimeType |
lookup(String type)
Lookup a MimeType enumeration by type.
|
boolean |
matches(String type)
Determine if the input matches the current element by first comparing
equalsIgnoreCase and then comparing startsWith.
|
String |
toString() |
static MimeType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MimeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MimeType TEXT_PLAIN
public static final MimeType TEXT_XML
public static final MimeType TEXT_HTML
public static final MimeType TEXT_CDA_XML
public static final MimeType APPLICATION_CCR
public static final MimeType APPLICATION_XML
public static final MimeType APPLICATION_PDF
public static final MimeType MULTIPART_MIXED
public static final MimeType MULTIPART
public static final MimeType UNKNOWN
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 boolean matches(String type)
type - The MIME type to compare.public static MimeType lookup(String type)
type - The type to use for lookup.public String getType()
public String getSuffix()
Copyright © 2010–2025. All rights reserved.