|
Project JXTA | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--net.jxta.document.MimeMediaType
Mime Media Types are used to describe the format of data streams. Its format is defined by IETF RFC 2046 MIME : Media Types. This class manages parsing of Mime Media Types from strings and piecemeal construction of Mime Media Type descriptors.
Document,
StructuredDocument,
StructuredTextDocument| Constructor Summary | |
MimeMediaType(MimeMediaType type,
java.lang.String params,
boolean replace)
Creates a new type/subtype MimeMediaType with the specified parameters. |
|
MimeMediaType(java.lang.String someString)
Creates a new MimeMediaType |
|
MimeMediaType(java.lang.String type,
java.lang.String subtype)
Creates a new type/subtype MimeMediaType |
|
MimeMediaType(java.lang.String type,
java.lang.String subtype,
java.lang.String parameters)
Creates a new type/subtype MimeMediaType |
|
| Method Summary | |
java.lang.Object |
clone()
{@inheritDoc} |
boolean |
equals(java.lang.Object obj)
{@inheritDoc} |
java.lang.String |
getMimeMediaType()
Get the "root" mime-type/subtype without any of the parameters. |
java.lang.String |
getParameter(java.lang.String param)
Get the value of the first occurance of the specified parameter from the parameter list. |
java.lang.String |
getSubtype()
Get the Subtype of the mime-type |
java.lang.String |
getType()
Get type of the mime-type |
int |
hashCode()
{@inheritDoc} |
boolean |
isExperimentalSubtype()
Check if the mime-type is for debugging. |
boolean |
isExperimentalType()
Check if the mime-type is for provisional. |
java.lang.String |
toString()
{@inheritDoc} |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public MimeMediaType(java.lang.String someString)
someString - string representing a mime-type
public MimeMediaType(java.lang.String type,
java.lang.String subtype)
type - string representing a mime typesubtype - string representing a mime subtype
public MimeMediaType(java.lang.String type,
java.lang.String subtype,
java.lang.String parameters)
type - string representing a mime typesubtype - string representing a mime subtypeparameters - parameters to the mime-type constructor
public MimeMediaType(MimeMediaType type,
java.lang.String params,
boolean replace)
type - the source mime typeparams - parameters to the mime-type constructorreplace - parameters if true then provided params should replace
existing params else they are accumulated.| Method Detail |
public java.lang.Object clone()
clone in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getMimeMediaType()
public java.lang.String getType()
public boolean isExperimentalType()
public java.lang.String getSubtype()
public boolean isExperimentalSubtype()
public java.lang.String getParameter(java.lang.String param)
param - the parameter to retrieve.
|
Project JXTA | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||