This provides access to the MIME type parts, that is the primary type, the secondary type and an optional character set parameter. The
charset
parameter is one of many parameters that can be associated with a MIME type. This however this exposes this parameter with a typed method.
The getCharset
will return the character encoding the content type is encoded within. This allows the user of the content to decode it correctly. Other parameters can be acquired from this by simply providing the name of the parameter.
@author Niall Gallagher