⇒ Index (Frames) |  ⇒ Index (No Frames) |  ⇒ Package |  ⇒ Package Tree |  ⇒ Full Tree 
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.
Author:

Constructor Summary

MimeTypeParameterList()

Constructor for an empty parameter list.

MimeTypeParameterList(String parameterList)

Constructor that parses the specified MIME parameter data.

Method Summary

synchronized String

get(String name)

Returns the value for the specified parameter name.

synchronized Enumeration

getNames()

Returns an enumeration of all the parameter names.

synchronized boolean

isEmpty()

Indicates if there are no parameters.

void

parse(String parameterList)

Parses the specified MIME parameter data, storing the results in this object.

synchronized void

remove(String name)

Removes the parameter identified by the specified name.

synchronized void

set(String name, String value)

Sets the value for the specified parameter name.

synchronized int

size()

Returns the number of parameters.

synchronized String

toString()

Returns an RFC 2045-complient string representation of this parameter list.

Constructor Details

MimeTypeParameterList

public MimeTypeParameterList()

Constructor for an empty parameter list.


MimeTypeParameterList

public MimeTypeParameterList(String parameterList)

Constructor that parses the specified MIME parameter data.

Parameters:
parameterList - a MIME parameter list string representation

Method Details

get

public synchronized String get(String name)

Returns the value for the specified parameter name.

Parameters:
name - the parameter name

getNames

public synchronized Enumeration getNames()

Returns an enumeration of all the parameter names.


isEmpty

public synchronized boolean isEmpty()

Indicates if there are no parameters.


parse

protected void parse(String parameterList)

Parses the specified MIME parameter data, storing the results in this object.

Parameters:
parameterList - a MIME parameter list string representation

remove

public synchronized void remove(String name)

Removes the parameter identified by the specified name.

Parameters:
name - the parameter name

set

public synchronized void set(String name, String value)

Sets the value for the specified parameter name.

Parameters:
name - the parameter name
value - the parameter value

size

public synchronized int size()

Returns the number of parameters.


toString

public synchronized String toString()

Returns an RFC 2045-complient string representation of this parameter list.