|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.xml.messaging.saaj.packaging.mime.internet.ParameterList
public final class ParameterList
This class holds MIME parameters (attribute-value pairs).
| Constructor Summary | |
|---|---|
ParameterList()
No-arg Constructor. |
|
ParameterList(String s)
Constructor that takes a parameter-list string. |
|
| Method Summary | |
|---|---|
ParameterList |
copy()
|
String |
get(String name)
Returns the value of the specified parameter. |
Iterator |
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. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ParameterList()
public ParameterList(String s)
throws ParseException
s - the parameter-list string.
ParseException - if the parse fails.| Method Detail |
|---|
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 remove(String name)
name - name of the parameter.public Iterator getNames()
public String toString()
toString in class Objectpublic 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||