javax.mail.internet
public class ParameterList extends Object
Version: 1.4
Constructor Summary | |
---|---|
ParameterList()
Constructor for an empty parameter list. | |
ParameterList(String s)
Constructor with a parameter-list string. |
Method Summary | |
---|---|
String | get(String name)
Returns the value of the specified parameter.
|
Enumeration | getNames()
Returns the names of all parameters in this list. |
void | remove(String name)
Removes the specified parameter from this list. |
void | set(String name, String value)
Sets the specified parameter. |
void | set(String name, String value, String charset)
Sets the specified parameter. |
int | size()
Returns the number of parameters in this list. |
String | toString()
Returns the MIME string representation of this parameter list. |
String | toString(int used)
Returns the MIME string representation of this parameter list. |
Parameters: s the parameter-list string
Throws: ParseException if the parse fails
Parameters: name the parameter name
Returns: an Enumeration of String
Parameters: name the parameter name
Parameters: name the parameter name value the parameter value
Parameters: name the parameter name value the parameter value charset the character set to use to encode the value, if
mail.mime.encodeparameters
is true.
Since: JavaMail 1.5
Parameters: used the number of character positions already used in the field into which the parameter list is to be inserted