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
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.