| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| public static enum | MimeTypes.Type
Enumeration of predefined MimeTypes. |
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| protected final Map | |
| protected final Map | |
| protected final Map | |
| public static final Index | |
| private static final Index | |
| public static final MimeTypes | |
| public static final String | |
| private static final Set | |
| pack-priv static final Logger | |
| public static final String | |
| public static final String |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Charset | |
| public Map | |
| public static MimeTypes. | |
| public Charset | Returns: ACharset or null;String form or a mimeType mimeType)Get the explicit, assumed, or inferred Charset for a mime type |
| public String | |
| public static String | |
| public String | |
| public static String | |
| public Charset | |
| public Map | |
| public static Charset | Returns: TheCharset for the normalized nameThe name of the charset charsetName)
|
| public String | Returns: MIME type matching the last dot extension of the file name, or matching "*" if none found.A file name filename)Get the MIME type by filename extension. |
| public String | |
| public Map | |
| public static boolean | |
| private static String | |
| public static String | Returns: the normalized charset (or null if normalized version not found)the charset to normalize charsetName)Convert alternate charset names (eg utf8) to normalized name (eg UTF-8). |
| public static String | Returns: the normalized charset (or null if not found)the charset to normalize charsetName, int the offset in the charset offset, int the length of the charset in the input param length)Convert alternate charset names (eg utf8) to normalized name (eg UTF-8). |
| private static String |
| _assumedEncodings | back to summary |
|---|---|
| protected final Map<String, Charset> _assumedEncodings | |
| _inferredEncodings | back to summary |
|---|---|
| protected final Map<String, Charset> _inferredEncodings | |
| _mimeMap | back to summary |
|---|---|
| protected final Map<String, String> _mimeMap | |
| CACHE | back to summary |
|---|---|
| public static final Index<MimeTypes. | |
| CHARSETS | back to summary |
|---|---|
| private static final Index<String> CHARSETS | |
| DEFAULTS | back to summary |
|---|---|
| public static final MimeTypes DEFAULTS | |
| ISO_8859_1 | back to summary |
|---|---|
| public static final String ISO_8859_1 | |
| KNOWN_LOCALES | back to summary |
|---|---|
| private static final Set<Locale> KNOWN_LOCALES | |
| LOG | back to summary |
|---|---|
| pack-priv static final Logger LOG | |
| UTF16 | back to summary |
|---|---|
| public static final String UTF16 | |
| UTF8 | back to summary |
|---|---|
| public static final String UTF8 | |
| MimeTypes | back to summary |
|---|---|
| public MimeTypes() | |
| MimeTypes | back to summary |
|---|---|
| public MimeTypes(MimeTypes defaults) | |
| getAssumedCharset | back to summary |
|---|---|
| public Charset getAssumedCharset(String contentType) | |
| getAssumedMap | back to summary |
|---|---|
| public Map | |
| getBaseType | back to summary |
|---|---|
| public static MimeTypes. | |
| getCharset | back to summary |
|---|---|
| public Charset getCharset(String mimeType) throws IllegalCharsetNameException, UnsupportedCharsetException Get the explicit, assumed, or inferred Charset for a mime type
| |
| getCharsetAssumedFromContentType | back to summary |
|---|---|
| public String getCharsetAssumedFromContentType(String contentType) | |
| getCharsetFromContentType | back to summary |
|---|---|
| public static String getCharsetFromContentType(String value) | |
| getCharsetInferredFromContentType | back to summary |
|---|---|
| public String getCharsetInferredFromContentType(String contentType) | |
| getContentTypeWithoutCharset | back to summary |
|---|---|
| public static String getContentTypeWithoutCharset(String value) | |
| getInferredCharset | back to summary |
|---|---|
| public Charset getInferredCharset(String contentType) | |
| getInferredMap | back to summary |
|---|---|
| public Map | |
| getKnownCharset | back to summary |
|---|---|
public static Charset getKnownCharset(String charsetName) throws UnsupportedEncodingException
| |
| getMimeByExtension | back to summary |
|---|---|
| public String getMimeByExtension(String filename) Get the MIME type by filename extension. | |
| getMimeForExtension | back to summary |
|---|---|
| public String getMimeForExtension(String extension) | |
| getMimeMap | back to summary |
|---|---|
| public Map | |
| isKnownLocale | back to summary |
|---|---|
| public static boolean isKnownLocale(Locale locale) | |
| nameOf | back to summary |
|---|---|
| private static String nameOf(Charset charset) | |
| normalizeCharset | back to summary |
|---|---|
| public static String normalizeCharset(String charsetName) Convert alternate charset names (eg utf8) to normalized name (eg UTF-8). | |
| normalizeCharset | back to summary |
|---|---|
| public static String normalizeCharset(String charsetName, int offset, int length) Convert alternate charset names (eg utf8) to normalized name (eg UTF-8). | |
| normalizeMimeType | back to summary |
|---|---|
| private static String normalizeMimeType(String type) | |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public String | |
| public String | Returns: previous valuethe extension extension, String the mime type type)Set a mime mapping |
| Mutable | back to summary |
|---|---|
| public Mutable() | |
| Mutable | back to summary |
|---|---|
| public Mutable(MimeTypes defaults) | |
| addAssumed | back to summary |
|---|---|
| public String addAssumed(String contentType, String encoding) | |
| addInferred | back to summary |
|---|---|
| public String addInferred(String contentType, String encoding) | |
| addMimeMapping | back to summary |
|---|---|
| public String addMimeMapping(String extension, String type) Set a mime mapping | |
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final MimeTypes. | |
| private final Charset | |
| private final String | |
| private final HttpField | |
| private final String | |
| public static final MimeTypes. | |
| public static final MimeTypes. | |
| public static final MimeTypes. | |
| public static final MimeTypes. | |
| public static final MimeTypes. | |
| public static final MimeTypes. | |
| public static final MimeTypes. | |
| public static final MimeTypes. | |
| public static final MimeTypes. | |
| public static final MimeTypes. | |
| public static final MimeTypes. | |
| public static final MimeTypes. | |
| public static final MimeTypes. | |
| public static final MimeTypes. | |
| public static final MimeTypes. | |
| public static final MimeTypes. | |
| public static final MimeTypes. | |
| public static final MimeTypes. | |
| public static final MimeTypes. |
| Access | Constructor and Description |
|---|---|
| private | |
| private | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public MimeTypes. | |
| public Charset | |
| public String | |
| public HttpField | |
| public HttpField | |
| public boolean | |
| public boolean | |
| public String | toString()
Overrides java. |
| public static MimeTypes. | |
| public static MimeTypes. |
| _assumedCharset | back to summary |
|---|---|
| private final boolean _assumedCharset | |
| _base | back to summary |
|---|---|
| private final MimeTypes. | |
| _charset | back to summary |
|---|---|
| private final Charset _charset | |
| _charsetString | back to summary |
|---|---|
| private final String _charsetString | |
| _field | back to summary |
|---|---|
| private final HttpField _field | |
| _string | back to summary |
|---|---|
| private final String _string | |
| APPLICATION_JSON | back to summary |
|---|---|
| public static final MimeTypes. | |
| APPLICATION_JSON_8859_1 | back to summary |
|---|---|
| public static final MimeTypes. | |
| APPLICATION_JSON_UTF_8 | back to summary |
|---|---|
| public static final MimeTypes. | |
| FORM_ENCODED | back to summary |
|---|---|
| public static final MimeTypes. | |
| MESSAGE_HTTP | back to summary |
|---|---|
| public static final MimeTypes. | |
| MULTIPART_BYTERANGES | back to summary |
|---|---|
| public static final MimeTypes. | |
| MULTIPART_FORM_DATA | back to summary |
|---|---|
| public static final MimeTypes. | |
| TEXT_HTML | back to summary |
|---|---|
| public static final MimeTypes. | |
| TEXT_HTML_8859_1 | back to summary |
|---|---|
| public static final MimeTypes. | |
| TEXT_HTML_UTF_8 | back to summary |
|---|---|
| public static final MimeTypes. | |
| TEXT_JSON | back to summary |
|---|---|
| public static final MimeTypes. | |
| TEXT_JSON_8859_1 | back to summary |
|---|---|
| public static final MimeTypes. | |
| TEXT_JSON_UTF_8 | back to summary |
|---|---|
| public static final MimeTypes. | |
| TEXT_PLAIN | back to summary |
|---|---|
| public static final MimeTypes. | |
| TEXT_PLAIN_8859_1 | back to summary |
|---|---|
| public static final MimeTypes. | |
| TEXT_PLAIN_UTF_8 | back to summary |
|---|---|
| public static final MimeTypes. | |
| TEXT_XML | back to summary |
|---|---|
| public static final MimeTypes. | |
| TEXT_XML_8859_1 | back to summary |
|---|---|
| public static final MimeTypes. | |
| TEXT_XML_UTF_8 | back to summary |
|---|---|
| public static final MimeTypes. | |
| Type | back to summary |
|---|---|
| private Type(String name) | |
| Type | back to summary |
|---|---|
| private Type(String name, MimeTypes. | |
| Type | back to summary |
|---|---|
| private Type(String name, Charset cs) | |
| asString | back to summary |
|---|---|
| public String asString() | |
| getBaseType | back to summary |
|---|---|
| public MimeTypes. | |
| getCharset | back to summary |
|---|---|
| public Charset getCharset() | |
| getCharsetString | back to summary |
|---|---|
| public String getCharsetString() | |
| getContentTypeField | back to summary |
|---|---|
| public HttpField getContentTypeField() | |
| getContentTypeField | back to summary |
|---|---|
| public HttpField getContentTypeField(Charset charset) | |
| is | back to summary |
|---|---|
| public boolean is(String type) | |
| isCharsetAssumed | back to summary |
|---|---|
| public boolean isCharsetAssumed() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns the name of this enum constant, as contained in the declaration. This method may be overridden, though it typically isn't necessary or desirable. An enum class should override this method when a more "programmer-friendly" string form exists. | |
| valueOf | back to summary |
|---|---|
| public static MimeTypes. | |
| values | back to summary |
|---|---|
| public static MimeTypes. | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Map | |
| public String | |
| public String | |
| public Map | |
| public String | getMimeForExtension(String extension)
Overrides org. |
| public Map | |
| public MimeTypes | |
| public void |
| _wrapped | back to summary |
|---|---|
| private MimeTypes _wrapped | |
| Wrapper | back to summary |
|---|---|
| public Wrapper() | |
| getAssumedMap | back to summary |
|---|---|
| public Map Overrides org.
| |
| getCharsetAssumedFromContentType | back to summary |
|---|---|
| public String getCharsetAssumedFromContentType(String contentType) Overrides org.
| |
| getCharsetInferredFromContentType | back to summary |
|---|---|
| public String getCharsetInferredFromContentType(String contentType) Overrides org.
| |
| getInferredMap | back to summary |
|---|---|
| public Map Overrides org.
| |
| getMimeForExtension | back to summary |
|---|---|
| public String getMimeForExtension(String extension) Overrides org.
| |
| getMimeMap | back to summary |
|---|---|
| public Map Overrides org.
| |
| getWrapped | back to summary |
|---|---|
| public MimeTypes getWrapped() | |
| setWrapped | back to summary |
|---|---|
| public void setWrapped(MimeTypes wrapped) | |