Class ParsedContentType
- java.lang.Object
- 
- org.mozilla.javascript.commonjs.module.provider.ParsedContentType
 
- 
- All Implemented Interfaces:
- java.io.Serializable
 
 public final class ParsedContentType extends java.lang.Object implements java.io.SerializableBreaks a "contentType; charset=encoding" MIME type into content type and encoding parts.- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description ParsedContentType(java.lang.String mimeType)Creates a new parsed content type.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetContentType()Returns the content type (without charset declaration) of the MIME type.java.lang.StringgetEncoding()Returns the character encoding of the MIME type.
 
- 
- 
- 
Method Detail- 
getContentTypepublic java.lang.String getContentType() Returns the content type (without charset declaration) of the MIME type.- Returns:
- the content type (without charset declaration) of the MIME type. Can be null if the MIME type was null.
 
 - 
getEncodingpublic java.lang.String getEncoding() Returns the character encoding of the MIME type.- Returns:
- the character encoding of the MIME type. Can be null when it is not specified.
 
 
- 
 
-