javax.activation
Class MimeType
java.lang.Object
javax.activation.MimeType
- All Implemented Interfaces:
- Externalizable, Serializable
- public class MimeType
- extends Object
- implements Externalizable
- Version:
- $Revision: 1.3 $ $Date: 2004/03/10 10:00:22 $
- See Also:
- Serialized Form
MimeType
public MimeType()
MimeType
public MimeType(String rawdata)
throws MimeTypeParseException
MimeType
public MimeType(String primary,
String sub)
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()
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-2005 Apache Software Foundation. All Rights Reserved.