javax.activation
public class MimeTypeParameterList extends Object
Constructor and Description |
---|
MimeTypeParameterList()
Constructor for an empty parameter list.
|
MimeTypeParameterList(String parameterList)
Constructor that parses the specified MIME parameter data.
|
Modifier and Type | Method and Description |
---|---|
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-compliant string representation of this parameter
list.
|
public MimeTypeParameterList()
public MimeTypeParameterList(String parameterList) throws MimeTypeParseException
parameterList
- a MIME parameter list string representationMimeTypeParseException
protected void parse(String parameterList) throws MimeTypeParseException
parameterList
- a MIME parameter list string representationMimeTypeParseException
public int size()
public boolean isEmpty()
public String get(String name)
name
- the parameter namepublic void set(String name, String value)
name
- the parameter namevalue
- the parameter valuepublic void remove(String name)
name
- the parameter namepublic Enumeration getNames()