| Modifier and Type | Field and Description |
|---|---|
| private MimeTypeParameterList | |
| private String | |
| private String | |
| private static final String | TSPECIALS
A string that holds all the special chars. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: the MIME type and sub-typeReturn a String representation of this object without the parameter list. |
| public String | Returns: the paramter's valuethe parameter name name)Retrieve the value associated with the given name, or null if there is no current association. |
| public MimeTypeParameterList | Returns: a MimeTypeParameterList object representing the parametersRetrieve this object's parameter list. |
| public String | |
| public String | |
| private static boolean | |
| private boolean | |
| public boolean | |
| public boolean | |
| private void | |
| public void | readExternal(ObjectInput
the ObjectInput object to read from in)Implements java. |
| public void | |
| public void | setParameter(String
the parameter name name, String the paramter's value value)Set the value to be associated with the given name, replacing any previous association. |
| public void | setPrimaryType(String
the primary MIME type primary)Set the primary type for this object to the given String. |
| public void | |
| public String | |
| public void | writeExternal(ObjectOutput
the ObjectOutput object to write to out)Implements java. |
| parameters | back to summary |
|---|---|
| private MimeTypeParameterList parameters | |
| primaryType | back to summary |
|---|---|
| private String primaryType | |
| subType | back to summary |
|---|---|
| private String subType | |
| TSPECIALS | back to summary |
|---|---|
| private static final String TSPECIALS A string that holds all the special chars. | |
| MimeType | back to summary |
|---|---|
| public MimeType() Default constructor. | |
| MimeType | back to summary |
|---|---|
| public MimeType(String rawdata) throws MimeTypeParseException Constructor that builds a MimeType from a String.
| |
| MimeType | back to summary |
|---|---|
| public MimeType(String primary, String sub) throws MimeTypeParseException Constructor that builds a MimeType with the given primary and sub type but has an empty parameter list.
| |
| getBaseType | back to summary |
|---|---|
| public String getBaseType() Return a String representation of this object without the parameter list.
| |
| getParameter | back to summary |
|---|---|
| public String getParameter(String name) Retrieve the value associated with the given name, or null if there is no current association. | |
| getParameters | back to summary |
|---|---|
| public MimeTypeParameterList getParameters() Retrieve this object's parameter list.
| |
| getPrimaryType | back to summary |
|---|---|
| public String getPrimaryType() Retrieve the primary type of this object.
| |
| getSubType | back to summary |
|---|---|
| public String getSubType() Retrieve the subtype of this object.
| |
| isTokenChar | back to summary |
|---|---|
| private static boolean isTokenChar(char c) Determine whether or not a given character belongs to a legal token. | |
| isValidToken | back to summary |
|---|---|
| private boolean isValidToken(String s) Determine whether or not a given string is a legal token. | |
| match | back to summary |
|---|---|
| public boolean match(MimeType type) Determine if the primary and sub type of this object is the same as what is in the given type.
| |
| match | back to summary |
|---|---|
| public boolean match(String rawdata) throws MimeTypeParseException Determine if the primary and sub type of this object is the same as the content type described in rawdata.
| |
| parse | back to summary |
|---|---|
| private void parse(String rawdata) throws MimeTypeParseException A routine for parsing the MIME type out of a String. | |
| readExternal | back to summary |
|---|---|
| public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException Implements java. The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays. The readExternal method must read the values in the same sequence and with the same types as were written by writeExternal.
| |
| removeParameter | back to summary |
|---|---|
| public void removeParameter(String name) Remove any value associated with the given name.
| |
| setParameter | back to summary |
|---|---|
| public void setParameter(String name, String value) Set the value to be associated with the given name, replacing any previous association. | |
| setPrimaryType | back to summary |
|---|---|
| public void setPrimaryType(String primary) throws MimeTypeParseException Set the primary type for this object to the given String.
| |
| setSubType | back to summary |
|---|---|
| public void setSubType(String sub) throws MimeTypeParseException Set the subtype for this object to the given String.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Return the String representation of this object.
| |
| writeExternal | back to summary |
|---|---|
| public void writeExternal(ObjectOutput out) throws IOException Implements java. The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings and arrays.
| |