public class MimeTypeParameterList extends Object
A parameter list of a MimeType as defined in RFC 2045 and 2046. The Primary type of the object must already be stripped off.
MimeType
public MimeTypeParameterList()
Default constructor.
public MimeTypeParameterList(String parameterList) throws MimeTypeParseException
Constructs a new MimeTypeParameterList with the passed in data.
parameterList
- an RFC 2045, 2046 compliant parameter list.MimeTypeParseException
protected void parse(String parameterList) throws MimeTypeParseException
A routine for parsing the parameter list out of a String.
parameterList
- an RFC 2045, 2046 compliant parameter list.MimeTypeParseException
public int size()
Return the number of name-value pairs in this list.
public boolean isEmpty()
Determine whether or not this list is empty.
public String get(String name)
Retrieve the value associated with the given name, or null if there is no current association.
name
- the parameter namepublic void set(String name, String value)
Set the value to be associated with the given name, replacing any previous association.
name
- the parameter namevalue
- the parameter's valuepublic void remove(String name)
Remove any value associated with the given name.
name
- the parameter namepublic Enumeration getNames()
Retrieve an enumeration of all the names in this list.
public String toString()
Return a string representation of this object.
© 1993–2017, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.