public class MimeType extends Object implements Externalizable
| Constructor and Description |
|---|
MimeType() |
MimeType(String rawdata) |
MimeType(String primary,
String sub) |
| Modifier and Type | Method and Description |
|---|---|
String |
getBaseType() |
String |
getParameter(String name) |
MimeTypeParameterList |
getParameters() |
String |
getPrimaryType() |
String |
getSubType() |
boolean |
match(MimeType type) |
boolean |
match(String rawdata) |
void |
readExternal(ObjectInput in) |
void |
removeParameter(String name) |
void |
setParameter(String name,
String value) |
void |
setPrimaryType(String primary) |
void |
setSubType(String sub) |
String |
toString() |
void |
writeExternal(ObjectOutput out) |
public MimeType()
public MimeType(String rawdata) throws MimeTypeParseException
MimeTypeParseExceptionpublic MimeType(String primary, String sub) throws MimeTypeParseException
MimeTypeParseExceptionpublic String getPrimaryType()
public void setPrimaryType(String primary) throws MimeTypeParseException
MimeTypeParseExceptionpublic String getSubType()
public void setSubType(String sub) throws MimeTypeParseException
MimeTypeParseExceptionpublic MimeTypeParameterList getParameters()
public void removeParameter(String name)
public String getBaseType()
public boolean match(MimeType type)
public boolean match(String rawdata) throws MimeTypeParseException
MimeTypeParseExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionCopyright © 2013. All Rights Reserved.