|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjavax.mail.internet.ParameterList
public class ParameterList
This class holds MIME parameters (attribute-value pairs).
The mail.mime.encodeparameters and
mail.mime.decodeparameters System properties
control whether encoded parameters, as specified by
RFC 2231,
are supported. By default, such encoded parameters are not
supported.
Also, in the current implementation, setting the System property
mail.mime.decodeparameters.strict to "true"
will cause a ParseException to be thrown for errors
detected while decoding encoded parameters. By default, if any
decoding errors occur, the original (undecoded) string is used.
| 构造方法摘要 | |
|---|---|
ParameterList()
No-arg Constructor. |
|
ParameterList(String s)
Constructor that takes a parameter-list string. |
|
| 方法摘要 | |
|---|---|
String |
get(String name)
Returns the value of the specified parameter. |
Enumeration |
getNames()
Return an enumeration of the names of all parameters in this list. |
void |
remove(String name)
Removes the specified parameter from this ParameterList. |
void |
set(String name,
String value)
Set a parameter. |
void |
set(String name,
String value,
String charset)
Set a parameter. |
int |
size()
Return the number of parameters in this list. |
String |
toString()
Convert this ParameterList into a MIME String. |
String |
toString(int used)
Convert this ParameterList into a MIME String. |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 构造方法详细信息 |
|---|
public ParameterList()
public ParameterList(String s)
throws ParseException
s - the parameter-list string.
ParseException - if the parse fails.| 方法详细信息 |
|---|
public int size()
public String get(String name)
name - parameter name.
null if the parameter is not
present.
public void set(String name,
String value)
name - name of the parameter.value - value of the parameter.
public void set(String name,
String value,
String charset)
mail.mime.encodeparameters System property
is true, and the parameter value is non-ASCII, it will be
encoded with the specified charset, as specified by RFC 2231.
name - name of the parameter.value - value of the parameter.charset - charset of the parameter value.public void remove(String name)
name - name of the parameter.public Enumeration getNames()
public String toString()
Object 中的 toStringpublic String toString(int used)
used - number of character positions already used, in
the field into which the parameter list is to
be inserted.
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||