javax.activation
Class MimeType
java.lang.Object
javax.activation.MimeType
- All Implemented Interfaces:
- Externalizable, Serializable
public class MimeType
- extends Object
- implements Externalizable
- Version:
- $Rev: 467553 $ $Date: 2006-10-25 06:01:51 +0200 (Mi, 25. Okt 2006) $
- See Also:
- Serialized Form
MimeType
public MimeType()
MimeType
public MimeType(String rawdata)
throws MimeTypeParseException
- Throws:
MimeTypeParseException
MimeType
public MimeType(String primary,
String sub)
throws MimeTypeParseException
- Throws:
MimeTypeParseException
getPrimaryType
public String getPrimaryType()
setPrimaryType
public void setPrimaryType(String primary)
throws MimeTypeParseException
- Throws:
MimeTypeParseException
getSubType
public String getSubType()
setSubType
public void setSubType(String sub)
throws MimeTypeParseException
- Throws:
MimeTypeParseException
getParameters
public MimeTypeParameterList getParameters()
getParameter
public String getParameter(String name)
setParameter
public void setParameter(String name,
String value)
removeParameter
public void removeParameter(String name)
toString
public String toString()
- Overrides:
toString
in class Object
getBaseType
public String getBaseType()
match
public boolean match(MimeType type)
match
public boolean match(String rawdata)
throws MimeTypeParseException
- Throws:
MimeTypeParseException
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
- Specified by:
writeExternal
in interface Externalizable
- Throws:
IOException
readExternal
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
- Specified by:
readExternal
in interface Externalizable
- Throws:
IOException
ClassNotFoundException
Copyright © 2003-2012 Apache Software Foundation. All Rights Reserved.