javax.activation.MimeType
| Modifier and Type | Field and Description |
|---|---|
| private Hashtable | |
| private static final String | TSPECIALS
A string that holds all the special chars. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | MimeTypeParameterList(String
an RFC 2045, 2046 compliant parameter list. parameterList)Constructs a new MimeTypeParameterList with the passed in data. |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public Enumeration | Returns: an enumeration of all parameter namesRetrieve an enumeration of all the names in this list. |
| public boolean | |
| private static boolean | |
| protected void | |
| private static String | |
| public void | |
| public void | |
| public int | |
| private static int | skipWhiteSpace(String rawdata, int i)
return the index of the first non white space character in rawdata at or after index i. |
| public String | |
| private static String |
| parameters | back to summary |
|---|---|
| private Hashtable<K, V> parameters | |
| TSPECIALS | back to summary |
|---|---|
| private static final String TSPECIALS A string that holds all the special chars. | |
| MimeTypeParameterList | back to summary |
|---|---|
| public MimeTypeParameterList() Default constructor. | |
| MimeTypeParameterList | back to summary |
|---|---|
| public MimeTypeParameterList(String parameterList) throws MimeTypeParseException Constructs a new MimeTypeParameterList with the passed in data.
| |
| get | back to summary |
|---|---|
| public String get(String name) Retrieve the value associated with the given name, or null if there is no current association. | |
| getNames | back to summary |
|---|---|
| public Enumeration Retrieve an enumeration of all the names in this list.
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Determine whether or not this list is empty.
| |
| isTokenChar | back to summary |
|---|---|
| private static boolean isTokenChar(char c) Determine whether or not a given character belongs to a legal token. | |
| parse | back to summary |
|---|---|
| protected void parse(String parameterList) throws MimeTypeParseException A routine for parsing the parameter list out of a String.
| |
| quote | back to summary |
|---|---|
| private static String quote(String value) A routine that knows how and when to quote and escape the given value. | |
| remove | back to summary |
|---|---|
| public void remove(String name) Remove any value associated with the given name.
| |
| set | back to summary |
|---|---|
| public void set(String name, String value) Set the value to be associated with the given name, replacing any previous association. | |
| size | back to summary |
|---|---|
| public int size() Return the number of name-value pairs in this list.
| |
| skipWhiteSpace | back to summary |
|---|---|
| private static int skipWhiteSpace(String rawdata, int i) return the index of the first non white space character in rawdata at or after index i. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Return a string representation of this object.
| |
| unquote | back to summary |
|---|---|
| private static String unquote(String value) A routine that knows how to strip the quotes and escape sequences from the given value. | |