| java.lang.Object | |
| ↳ | com.google.code.javax.activation.MimeType |
A Multipurpose Internet Mail Extension (MIME) type, as defined in RFC 2045 and 2046.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String | TSPECIALS | A string that holds all the special chars. | |||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| parameters | |||||||||||
| primaryType | |||||||||||
| subType | |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Default constructor.
| |||||||||||
Constructor that builds a MimeType from a String.
| |||||||||||
Constructor that builds a MimeType with the given primary and sub type
but has an empty parameter list.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Return a String representation of this object
without the parameter list.
| |||||||||||
Retrieve the value associated with the given name, or null if there
is no current association.
| |||||||||||
Retrieve this object's parameter list.
| |||||||||||
Retrieve the primary type of this object.
| |||||||||||
Retrieve the subtype of this object.
| |||||||||||
Determine if the primary and sub type of this object is
the same as what is in the given type.
| |||||||||||
Determine if the primary and sub type of this object is
the same as the content type described in rawdata.
| |||||||||||
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.
| |||||||||||
Remove any value associated with the given name.
| |||||||||||
Set the value to be associated with the given name, replacing
any previous association.
| |||||||||||
Set the primary type for this object to the given String.
| |||||||||||
Set the subtype for this object to the given String.
| |||||||||||
Return the String representation of this object.
| |||||||||||
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.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
java.io.Externalizable
| |||||||||||
A string that holds all the special chars.
Default constructor.
Constructor that builds a MimeType from a String.
| rawdata | The MIME type string |
|---|
| MimeTypeParseException |
|---|
Constructor that builds a MimeType with the given primary and sub type but has an empty parameter list.
| primary | The primary MIME type |
|---|---|
| sub | The MIME sub-type |
| MimeTypeParseException | if the primary type or subtype is not a valid token |
|---|
Return a String representation of this object without the parameter list.
Retrieve the value associated with the given name, or null if there is no current association.
| name | The parameter name |
|---|
Retrieve this object's parameter list.
Retrieve the primary type of this object.
Retrieve the subtype of this object.
Determine if the primary and sub type of this object is the same as what is in the given type.
| type | The MimeType object to compare with |
|---|
Determine if the primary and sub type of this object is the same as the content type described in rawdata.
| rawdata | The MIME type string to compare with |
|---|
| MimeTypeParseException |
|---|
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.
| in | The ObjectInput object to read from |
|---|
| ClassNotFoundException | If the class for an object being restored cannot be found. |
|---|---|
| IOException |
Remove any value associated with the given name.
| name | The parameter name |
|---|
Set the value to be associated with the given name, replacing any previous association.
| name | The parameter name |
|---|---|
| value | The paramter's value |
Set the primary type for this object to the given String.
| primary | The primary MIME type |
|---|
| MimeTypeParseException | if the primary type is not a valid token |
|---|
Set the subtype for this object to the given String.
| sub | The MIME subtype |
|---|
| MimeTypeParseException | if the subtype is not a valid token |
|---|
Return the String representation of this object.
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.
| out | The ObjectOutput object to write to |
|---|
| IOException | Includes any I/O exceptions that may occur |
|---|