public final class ParameterList
extends java.lang.Object
| Constructor and Description |
|---|
ParameterList()
No-arg Constructor.
|
ParameterList(java.lang.String s)
Constructor that takes a parameter-list string.
|
| Modifier and Type | Method and Description |
|---|---|
ParameterList |
copy() |
java.lang.String |
get(java.lang.String name)
Returns the value of the specified parameter.
|
java.util.Iterator |
getNames()
Return an enumeration of the names of all parameters in this
list.
|
void |
remove(java.lang.String name)
Removes the specified parameter from this ParameterList.
|
void |
set(java.lang.String name,
java.lang.String value)
Set a parameter.
|
int |
size()
Return the number of parameters in this list.
|
java.lang.String |
toString()
Convert this ParameterList into a MIME String.
|
java.lang.String |
toString(int used)
Convert this ParameterList into a MIME String.
|
public ParameterList()
public ParameterList(java.lang.String s)
throws ParseException
s - the parameter-list string.ParseException - if the parse fails.public int size()
public java.lang.String get(java.lang.String name)
name - parameter name.null if the parameter is not
present.public void set(java.lang.String name,
java.lang.String value)
name - name of the parameter.value - value of the parameter.public void remove(java.lang.String name)
name - name of the parameter.public java.util.Iterator getNames()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toString(int used)
used - number of character positions already used, in
the field into which the parameter list is to
be inserted.public ParameterList copy()
Copyright © 2013 Oracle. All Rights Reserved.