|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.pivot.util.MIMEType
public class MIMEType
Utility class for introspection a MIME type string.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.apache.pivot.collections.Dictionary |
|---|
Dictionary.Pair<K,V> |
| Constructor Summary | |
|---|---|
MIMEType(String baseType)
|
|
| Method Summary | |
|---|---|
boolean |
containsKey(String key)
Tests the existence of a key in the dictionary. |
static MIMEType |
decode(String value)
|
String |
get(String key)
Retrieves the value for the given key. |
String |
getBaseType()
Returns the base type of this MIME type (i.e. the type string minus parameter values). |
Iterator<String> |
iterator()
|
String |
put(String key,
String value)
Sets the value of the given key, creating a new entry or replacing the existing value. |
String |
remove(String key)
Removes a key/value pair from the map. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MIMEType(String baseType)
| Method Detail |
|---|
public String getBaseType()
public String get(String key)
Dictionary
get in interface Dictionary<String,String>key - The key whose value is to be returned.
public String put(String key,
String value)
Dictionary
put in interface Dictionary<String,String>key - The key whose value is to be set.value - The value to be associated with the given key.
public String remove(String key)
Dictionary
remove in interface Dictionary<String,String>key - The key whose mapping is to be removed.
public boolean containsKey(String key)
Dictionary
containsKey in interface Dictionary<String,String>key - The key whose presence in the dictionary is to be tested.
public Iterator<String> iterator()
iterator in interface Iterable<String>public String toString()
toString in class Objectpublic static MIMEType decode(String value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||