| java.lang.Object nextapp.echo2.webrender.ContentType
ContentType | public class ContentType implements Serializable(Code) | | A representation of a content-type.
This object contains a MIME-type and a flag indicating whether the
content-type is used exclusively for binary data (i.e., indicating whether
a character encoding needs to be specified).
|
Constructor Summary | |
public | ContentType(String mimeType, boolean binary) Creates a new content type. |
ContentType | public ContentType(String mimeType, boolean binary)(Code) | | Creates a new content type.
Parameters: mimeType - The MIME type of the content type. Parameters: binary - True if the content type is used exclusively for binary data, i.e., it does not require any character encoding |
getMimeType | public String getMimeType()(Code) | | Returns the MIME type.
The MIME type. |
isBinary | public boolean isBinary()(Code) | | Determines if the content type is used exclusively for binary
data, i.e., it does not require any character encoding
true if the content type is binary |
|
|