|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.mail.internet.ParameterList
public class ParameterList
A list of MIME parameters. MIME parameters are name-value pairs associated with a MIME header.
Constructor Summary | |
---|---|
ParameterList()
Constructor for an empty parameter list. |
|
ParameterList(java.lang.String s)
Constructor with a parameter-list string. |
Method Summary | |
---|---|
java.lang.String |
get(java.lang.String name)
Returns the value of the specified parameter. |
java.util.Enumeration |
getNames()
Returns the names of all parameters in this list. |
void |
remove(java.lang.String name)
Removes the specified parameter from this list. |
void |
set(java.lang.String name,
java.lang.String value)
Sets the specified parameter. |
int |
size()
Returns the number of parameters in this list. |
java.lang.String |
toString()
Returns the MIME string representation of this parameter list. |
java.lang.String |
toString(int used)
Returns the MIME string representation of this parameter list. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ParameterList()
public ParameterList(java.lang.String s) throws ParseException
s
- the parameter-list string
ParseException
- if the parse failsMethod Detail |
---|
public int size()
public java.lang.String get(java.lang.String name)
name
- the parameter namepublic void set(java.lang.String name, java.lang.String value)
name
- the parameter namevalue
- the parameter valuepublic void remove(java.lang.String name)
name
- the parameter namepublic java.util.Enumeration getNames()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(int used)
used
- the number of character positions already used in the
field into which the parameter list is to be inserted
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |