@Immutable public final class MimeTypeUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static Charset |
getCharsetFromMimeType(IMimeType aMimeType)
Determine the charset from the provided MIME type.
|
static String |
getCharsetNameFromMimeType(IMimeType aMimeType)
Determine the charset name from the provided MIME type.
|
@Nullable public static String getCharsetNameFromMimeType(@Nullable IMimeType aMimeType)
aMimeType - The MIME type to query. May be null.null if no MIME type was provided or if the MIME type
does not contain a "charset" parameter@Nullable public static Charset getCharsetFromMimeType(@Nullable IMimeType aMimeType)
aMimeType - The MIME type to query. May be null.null if no MIME type was provided or if the MIME type
does not contain a "charset" parameter or if the provided charset
name is invalid.Copyright © 2006–2014 phloc systems. All rights reserved.