|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
javax.activation Class MimeTypeParameterList
java.lang.Object javax.activation.MimeTypeParameterList
public class MimeTypeParameterList
- extends Object
RFC 2045 和 2046 中定义的 MimeType 参数列表。必须已经去掉了对象的基本类型。
See also | javax.activation.MimeType |
A parameter list of a MimeType as defined in RFC 2045 and 2046. The Primary type of the object must already be stripped off.
- See Also:
MimeType
Constructor Summary | |
---|---|
MimeTypeParameterList()
Default constructor. |
|
MimeTypeParameterList(String parameterList)
Constructs a new MimeTypeParameterList with the passed in data. |
Method Summary | |
---|---|
String |
get(String name)
Retrieve the value associated with the given name, or null if there is no current association. |
Enumeration |
getNames()
Retrieve an enumeration of all the names in this list. |
boolean |
isEmpty()
Determine whether or not this list is empty. |
protected void |
parse(String parameterList)
A routine for parsing the parameter list out of a String. |
void |
remove(String name)
Remove any value associated with the given name. |
void |
set(String name,
String value)
Set the value to be associated with the given name, replacing any previous association. |
int |
size()
Return the number of name-value pairs in this list. |
String |
toString()
Return a string representation of this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public
MimeTypeParameterList()
默认构造方法。
英文文档:
MimeTypeParameterList
public MimeTypeParameterList()
- Default constructor.
public
MimeTypeParameterList(String parameterList) throws MimeTypeParseException
用传入的数据构造新的 MimeTypeParameterList。
parameterList | RFC 2045、2046 兼容参数列表。 |
MimeTypeParameterList
public MimeTypeParameterList(String parameterList) throws MimeTypeParseException
- Constructs a new MimeTypeParameterList with the passed in data.
- Parameters:
parameterList
- an RFC 2045, 2046 compliant parameter list.- Throws:
MimeTypeParseException
Method Detail |
---|
protected void
parse(String parameterList) throws MimeTypeParseException
将参数列表从一个 String 解析出来的例程。
parameterList | RFC 2045、2046 兼容参数列表。 |
parse
protected void parse(String parameterList) throws MimeTypeParseException
- A routine for parsing the parameter list out of a String.
- Parameters:
parameterList
- an RFC 2045, 2046 compliant parameter list.- Throws:
MimeTypeParseException
public int
size()
返回此列表中名称-值对的数量。
return | 参数的数量 |
size
public int size()
- Return the number of name-value pairs in this list.
- Returns:
- the number of parameters
public boolean
isEmpty()
确定此列表是否为空。
return | 如果没有参数,则返回 true |
isEmpty
public boolean isEmpty()
- Determine whether or not this list is empty.
- Returns:
- true if there are no parameters
public String
get(String name)
获取与给定名称关联的值;如果不存在当前关联,则返回 null。
name | 参数名 |
return | 参数的值 |
get
public String get(String name)
- Retrieve the value associated with the given name, or null if there
is no current association.
- Parameters:
name
- the parameter name- Returns:
- the parameter's value
public void
set(String name, String value)
将值设置为与给定名称关联,替换以前的任何关联。
name | 参数名 |
value | 参数的值 |
set
public void set(String name, String value)
- Set the value to be associated with the given name, replacing
any previous association.
- Parameters:
name
- the parameter namevalue
- the parameter's value
public void
remove(String name)
移除与给定名称关联的所有值。
name | 参数名 |
remove
public void remove(String name)
- Remove any value associated with the given name.
- Parameters:
name
- the parameter name
public java.util.Enumeration<E>
getNames()
获取此列表中所有名称的枚举。
return | 所有参数名的枚举 |
getNames
public Enumeration getNames()
- Retrieve an enumeration of all the names in this list.
- Returns:
- an enumeration of all parameter names
public String
toString()
返回此对象的字符串表示形式。
英文文档:
toString
public String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Submit a bug or feature
Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!