Class ParsedContentType
java.lang.Object
org.mozilla.javascript.commonjs.module.provider.ParsedContentType
- All Implemented Interfaces:
Serializable
Breaks a "contentType; charset=encoding" MIME type into content type and
encoding parts.
- Version:
- $Id: ParsedContentType.java,v 1.3 2011/04/07 20:26:12 hannes%helma.at Exp $
- Author:
- Attila Szegedi
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the content type (without charset declaration) of the MIME type.Returns the character encoding of the MIME type.
-
Constructor Details
-
ParsedContentType
Creates a new parsed content type.- Parameters:
mimeType
- the full MIME type; typically the value of the "Content-Type" header of some MIME-compliant message. Can be null.
-
-
Method Details
-
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.
-
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.
-