Movatterモバイル変換


[0]ホーム

URL:


         


Class ParameterList

java.lang.Object  |  +--javax.mail.internet.ParameterList

public classParameterList
extends java.lang.Object

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
 

ParameterList

publicParameterList()
No-arg Constructor.

ParameterList

publicParameterList(java.lang.String s)              throwsParseException
Constructor that takes a parameter-list string. The String is parsed and the parameters are collected and stored internally. A ParseException is thrown if the parse fails. Note that an empty parameter-list string is valid and will be parsed into an empty ParameterList.
Parameters:
s - the parameter-list string.
Throws:
ParseException - if the parse fails.

size

public intsize()
Return the number of parameters in this list.
Returns:
number of parameters.

get

public java.lang.Stringget(java.lang.String name)
Returns the value of the specified parameter. Note that parameter names are case-insensitive.
Parameters:
name - parameter name.
Returns:
Value of the parameter. Returnsnull if the parameter is not present.

set

public voidset(java.lang.String name,                java.lang.String value)
Set a parameter. If this parameter already exists, it is replaced by this new value.
Parameters:
name - name of the parameter.
value - value of the parameter.

remove

public voidremove(java.lang.String name)
Removes the specified parameter from this ParameterList. This method does nothing if the parameter is not present.
Parameters:
name - name of the parameter.

getNames

public java.util.EnumerationgetNames()
Return an enumeration of the names of all parameters in this list.
Returns:
Enumeration of all parameter names in this list.

toString

public java.lang.StringtoString()
Convert this ParameterList into a MIME String. If this is an empty list, an empty string is returned.
Overrides:
toString in classjava.lang.Object
Returns:
String

         


[8]ページ先頭

©2009-2025 Movatter.jp