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
MimeTypeParseException
public MimeType(String primary, String sub) throws MimeTypeParseException
MimeTypeParseException
public String getPrimaryType()
public void setPrimaryType(String primary) throws MimeTypeParseException
MimeTypeParseException
public String getSubType()
public void setSubType(String sub) throws MimeTypeParseException
MimeTypeParseException
public MimeTypeParameterList getParameters()
public void removeParameter(String name)
public String getBaseType()
public boolean match(MimeType type)
public boolean match(String rawdata) throws MimeTypeParseException
MimeTypeParseException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
Copyright © 2014. All rights reserved.