Example usage for Java javax.activation MimeType fields, constructors, methods, implement or subclass
The text is from its open source code.
MimeType(String rawdata) Constructor that builds a MimeType from a String. | |
MimeType(String primary, String sub) Constructor that builds a MimeType with the given primary and sub type but has an empty parameter list. | |
MimeType() Default constructor. |
String | getBaseType() Return a String representation of this object without the parameter list. |
String | getParameter(String name) Retrieve the value associated with the given name, or null if there is no current association. |
MimeTypeParameterList | getParameters() Retrieve this object's parameter list. |
String | getPrimaryType() Retrieve the primary type of this object. |
String | getSubType() Retrieve the subtype of this object. |
boolean | match(MimeType type) Determine if the primary and sub type of this object is the same as what is in the given type. |
boolean | match(String rawdata) Determine if the primary and sub type of this object is the same as the content type described in rawdata. |
void | setParameter(String name, String value) Set the value to be associated with the given name, replacing any previous association. |
String | toString() Return the String representation of this object. |