Enum Class MimeTypes.Type
- All Implemented Interfaces:
 Serializable, Comparable<MimeTypes.Type>, Constable
- Enclosing class:
 MimeTypes
Enumeration of predefined MimeTypes. This is not exhaustive
- 
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> - 
Enum Constant Summary
Enum ConstantsEnum ConstantDescription - 
Method Summary
Modifier and TypeMethodDescriptionasString()Get the base type of this type, which is the type without a charset specifiedgetContentTypeField(Charset charset) booleanCheck if this type is equal to the type passed as a stringbooleantoString()static MimeTypes.TypeReturns the enum constant of this class with the specified name.static MimeTypes.Type[]values()Returns an array containing the constants of this enum class, in the order they are declared. 
- 
Enum Constant Details
- 
FORM_ENCODED
 - 
FORM_ENCODED_UTF_8
 - 
FORM_ENCODED_8859_1
 - 
MESSAGE_HTTP
 - 
MULTIPART_BYTERANGES
 - 
MULTIPART_FORM_DATA
 - 
TEXT_HTML
 - 
TEXT_HTML_8859_1
 - 
TEXT_HTML_UTF_8
 - 
TEXT_PLAIN
 - 
TEXT_PLAIN_8859_1
 - 
TEXT_PLAIN_UTF_8
 - 
TEXT_XML
 - 
TEXT_XML_8859_1
 - 
TEXT_XML_UTF_8
 - 
TEXT_JSON
 - 
TEXT_JSON_8859_1
 - 
TEXT_JSON_UTF_8
 - 
APPLICATION_JSON
 - 
APPLICATION_JSON_8859_1
 - 
APPLICATION_JSON_UTF_8
 
 - 
 - 
Method Details
- 
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
 - an array containing the constants of this enum class, in the order they are declared
 
 - 
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
 name- the name of the enum constant to be returned.- Returns:
 - the enum constant with the specified name
 - Throws:
 IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
 - 
getCharset
 - 
getCharsetString
 - 
is
Check if this type is equal to the type passed as a string- Parameters:
 type- The type to compare to- Returns:
 trueif this is the same type
 - 
asString
 - 
toString
- Overrides:
 toStringin classEnum<MimeTypes.Type>
 - 
isCharsetAssumed
public boolean isCharsetAssumed()- Returns:
 trueIf theCharsetfor this type is assumed rather than being explicitly declared.
 - 
getContentTypeField
 - 
getContentTypeField
 - 
getBaseType
Get the base type of this type, which is the type without a charset specified- Returns:
 - The base type or this type if it is a base type
 
 
 -