public class MimeTypeParameterList
extends java.lang.Object
| Constructor and Description |
|---|
MimeTypeParameterList()
Constructor for an empty parameter list.
|
MimeTypeParameterList(java.lang.String parameterList)
Constructor that parses the specified MIME parameter data.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
get(java.lang.String name)
Returns the value for the specified parameter name.
|
java.util.Enumeration |
getNames()
Returns an enumeration of all the parameter names.
|
boolean |
isEmpty()
Indicates if there are no parameters.
|
protected void |
parse(java.lang.String parameterList)
Parses the specified MIME parameter data, storing the results in this
object.
|
void |
remove(java.lang.String name)
Removes the parameter identified by the specified name.
|
void |
set(java.lang.String name,
java.lang.String value)
Sets the value for the specified parameter name.
|
int |
size()
Returns the number of parameters.
|
java.lang.String |
toString()
Returns an RFC 2045-compliant string representation of this parameter
list.
|
public MimeTypeParameterList()
public MimeTypeParameterList(java.lang.String parameterList)
throws MimeTypeParseException
parameterList - a MIME parameter list string representationMimeTypeParseExceptionprotected void parse(java.lang.String parameterList)
throws MimeTypeParseException
parameterList - a MIME parameter list string representationMimeTypeParseExceptionpublic int size()
public boolean isEmpty()
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