public final class ParsedContentType
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
ParsedContentType(java.lang.String mimeType)
Creates a new parsed content type.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getContentType()
Returns the content type (without charset declaration) of the MIME type.
|
java.lang.String |
getEncoding()
Returns the character encoding of the MIME type.
|
public ParsedContentType(java.lang.String mimeType)
mimeType - the full MIME type; typically the value of the
"Content-Type" header of some MIME-compliant message. Can be null.public java.lang.String getContentType()
public java.lang.String getEncoding()