javax.activation
类 MimeType

java.lang.Object
  继承者 javax.activation.MimeType
所有已实现的接口:
Externalizable, Serializable

public class MimeType
extends Object
implements Externalizable

版本:
$Rev: 467742 $ $Date: 2011/05/07 04:32:39 $
另请参见:
序列化表格

构造方法摘要
MimeType()
           
MimeType(String rawdata)
           
MimeType(String primary, String sub)
           
 
方法摘要
 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)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

MimeType

public MimeType()

MimeType

public MimeType(String rawdata)
         throws MimeTypeParseException
抛出:
MimeTypeParseException

MimeType

public MimeType(String primary,
                String sub)
         throws MimeTypeParseException
抛出:
MimeTypeParseException
方法详细信息

getPrimaryType

public String getPrimaryType()

setPrimaryType

public void setPrimaryType(String primary)
                    throws MimeTypeParseException
抛出:
MimeTypeParseException

getSubType

public String getSubType()

setSubType

public void setSubType(String sub)
                throws MimeTypeParseException
抛出:
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()
覆盖:
Object 中的 toString

getBaseType

public String getBaseType()

match

public boolean match(MimeType type)

match

public boolean match(String rawdata)
              throws MimeTypeParseException
抛出:
MimeTypeParseException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
指定者:
接口 Externalizable 中的 writeExternal
抛出:
IOException

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
指定者:
接口 Externalizable 中的 readExternal
抛出:
IOException
ClassNotFoundException


Copyright © 2013. All Rights Reserved.