java.lang.Object | +--javax.mail.internet.ParameterList
This class holds MIME parameters (attribute-value pairs).
ParameterList() No-arg Constructor. | |
ParameterList(java.lang.String s) Constructor that takes a parameter-list string. |
get(java.lang.String name) Returns the value of the specified parameter. | |
getNames() Return an enumeration of the names of all parameters in this list. | |
remove(java.lang.String name) Removes the specified parameter from this ParameterList. | |
set(java.lang.String name, java.lang.String value) Set a parameter. | |
size() Return the number of parameters in this list. | |
toString() Convert this ParameterList into a MIME String. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
publicParameterList()
publicParameterList(java.lang.String s) throwsParseException
s
- the parameter-list string.ParseException
- if the parse fails.public intsize()
public java.lang.Stringget(java.lang.String name)
name
- parameter name.null
if the parameter is not present.public voidset(java.lang.String name, java.lang.String value)
name
- name of the parameter.value
- value of the parameter.public voidremove(java.lang.String name)
name
- name of the parameter.public java.util.EnumerationgetNames()
public java.lang.StringtoString()
toString
in classjava.lang.Object