public static enum MimeTypes.Type extends Enum<MimeTypes.Type>
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
asBuffer() |
String |
asString() |
MimeTypes.Type |
getBaseType() |
Charset |
getCharset() |
HttpField |
getContentTypeField() |
boolean |
is(String s) |
boolean |
isCharsetAssumed() |
String |
toString() |
static MimeTypes.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MimeTypes.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MimeTypes.Type FORM_ENCODED
public static final MimeTypes.Type MESSAGE_HTTP
public static final MimeTypes.Type MULTIPART_BYTERANGES
public static final MimeTypes.Type TEXT_HTML
public static final MimeTypes.Type TEXT_PLAIN
public static final MimeTypes.Type TEXT_XML
public static final MimeTypes.Type TEXT_JSON
public static final MimeTypes.Type APPLICATION_JSON
public static final MimeTypes.Type TEXT_HTML_8859_1
public static final MimeTypes.Type TEXT_HTML_UTF_8
public static final MimeTypes.Type TEXT_PLAIN_8859_1
public static final MimeTypes.Type TEXT_PLAIN_UTF_8
public static final MimeTypes.Type TEXT_XML_8859_1
public static final MimeTypes.Type TEXT_XML_UTF_8
public static final MimeTypes.Type TEXT_JSON_8859_1
public static final MimeTypes.Type TEXT_JSON_UTF_8
public static final MimeTypes.Type APPLICATION_JSON_8859_1
public static final MimeTypes.Type APPLICATION_JSON_UTF_8
public static MimeTypes.Type[] values()
for (MimeTypes.Type c : MimeTypes.Type.values()) System.out.println(c);
public static MimeTypes.Type 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 ByteBuffer asBuffer()
public Charset getCharset()
public boolean is(String s)
public String asString()
public String toString()
toString
in class Enum<MimeTypes.Type>
public boolean isCharsetAssumed()
public HttpField getContentTypeField()
public MimeTypes.Type getBaseType()
Copyright © 1995-2015 Webtide. All Rights Reserved.