javax.activation
Class MimeTypeParameterList
java.lang.Object
javax.activation.MimeTypeParameterList
public class MimeTypeParameterList
extends java.lang.Object
A list of MIME type parameters, as specified in RFCs 2045 and 2046.
String | get(String name) - Returns the value for the specified parameter name.
|
Enumeration | getNames() - Returns an enumeration of all the parameter names.
|
boolean | isEmpty() - Indicates if there are no parameters.
|
protected void | parse(String parameterList) - Parses the specified MIME parameter data, storing the results in this
object.
|
void | remove(String name) - Removes the parameter identified by the specified name.
|
void | set(String name, String value) - Sets the value for the specified parameter name.
|
int | size() - Returns the number of parameters.
|
String | toString() - Returns an RFC 2045-complient string representation of this parameter
list.
|
MimeTypeParameterList
public MimeTypeParameterList()
Constructor for an empty parameter list.
MimeTypeParameterList
public MimeTypeParameterList(String parameterList)
throws MimeTypeParseException
Constructor that parses the specified MIME parameter data.
parameterList
- a MIME parameter list string representation
get
public String get(String name)
Returns the value for the specified parameter name.
name
- the parameter name
getNames
public Enumeration getNames()
Returns an enumeration of all the parameter names.
isEmpty
public boolean isEmpty()
Indicates if there are no parameters.
parse
protected void parse(String parameterList)
throws MimeTypeParseException
Parses the specified MIME parameter data, storing the results in this
object.
parameterList
- a MIME parameter list string representation
remove
public void remove(String name)
Removes the parameter identified by the specified name.
name
- the parameter name
set
public void set(String name,
String value)
Sets the value for the specified parameter name.
name
- the parameter namevalue
- the parameter value
size
public int size()
Returns the number of parameters.
toString
public String toString()
Returns an RFC 2045-complient string representation of this parameter
list.