javax.activation
Class MimeType

java.lang.Object
  extended by 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

Constructor Summary
MimeType()
           
MimeType(String rawdata)
           
MimeType(String primary, String sub)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MimeType

public MimeType()

MimeType

public MimeType(String rawdata)
         throws MimeTypeParseException
Throws:
MimeTypeParseException

MimeType

public MimeType(String primary,
                String sub)
         throws MimeTypeParseException
Throws:
MimeTypeParseException
Method Detail

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.