|
Java Platform 1.2 Beta 4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.mime.MimeType
Constructor Summary | |
MimeType()
Constructor for externalization. |
|
MimeType(String primary,
String sub,
MimeTypeParameterList mtpl)
Constructor used to initialize MimeType, with a pre-defined and valid (or empty) parameter list. |
|
MimeType(String primary,
String sub)
Constructor that builds a MimeType with the given primary and sub type but has an empty parameter list. |
|
MimeType(String rawdata)
Constructor that builds a MimeType from a String. |
Method Summary | |
Object | clone()
|
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 a copy of this object's parameter list. |
String | getPrimaryType()
Retrieve the primary type of this object. |
String | getSubType()
Retrieve the sub type of this object. |
boolean | match(MimeType type)
Determine of the primary and sub type of this object is the same as the what is in the given type. |
boolean | match(String rawdata)
Determine of the primary and sub type of this object is the same as the content type described in rawdata. |
void | readExternal(ObjectInput in)
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. |
void | removeParameter(String name)
Remove any value associated with the given name. |
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. |
void | writeExternal(ObjectOutput out)
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. |
Methods inherited from class java.lang.Object | |
equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait |
Constructor Detail |
public MimeType()
public MimeType(String rawdata) throws MimeTypeParseException
public MimeType(String primary, String sub) throws MimeTypeParseException
public MimeType(String primary, String sub, MimeTypeParameterList mtpl) throws MimeTypeParseException
Method Detail |
public String getPrimaryType()
public String getSubType()
public MimeTypeParameterList getParameters()
public String getParameter(String name)
public void setParameter(String name, String value)
public void removeParameter(String name)
public String toString()
public String getBaseType()
public boolean match(MimeType type)
public boolean match(String rawdata) throws MimeTypeParseException
public void writeExternal(ObjectOutput out) throws IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
public Object clone() throws CloneNotSupportedException
|
Java Platform 1.2 Beta 4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |