public class Headers
extends java.lang.Object
implements java.util.Map
| Constructor and Description |
|---|
Headers() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(java.lang.Object key) |
boolean |
containsValue(java.lang.Object value) |
java.util.Set |
entrySet() |
boolean |
equals(java.lang.Object other) |
java.lang.Object |
get(java.lang.Object key) |
java.util.Date |
getDateValue(java.lang.String header)
Returns the value of the specified header as a date,
or
null if the header is not present or not a date. |
int |
getIntValue(java.lang.String header)
Returns the value of the specified header as an integer,
or -1 if the header is not present or not an integer.
|
java.lang.String |
getValue(java.lang.String header)
Returns the value of the specified header as a string.
|
int |
hashCode() |
boolean |
isEmpty() |
java.util.Set |
keySet() |
void |
parse(java.io.InputStream in)
Parse the specified input stream, adding headers to this collection.
|
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value) |
void |
putAll(java.util.Map t) |
java.lang.Object |
remove(java.lang.Object key) |
int |
size() |
java.util.Collection |
values() |
public int size()
size in interface java.util.Mappublic boolean isEmpty()
isEmpty in interface java.util.Mappublic boolean containsKey(java.lang.Object key)
containsKey in interface java.util.Mappublic boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Mappublic java.lang.Object get(java.lang.Object key)
get in interface java.util.Mappublic java.lang.String getValue(java.lang.String header)
public int getIntValue(java.lang.String header)
public java.util.Date getDateValue(java.lang.String header)
null if the header is not present or not a date.public java.lang.Object put(java.lang.Object key,
java.lang.Object value)
put in interface java.util.Mappublic java.lang.Object remove(java.lang.Object key)
remove in interface java.util.Mappublic void putAll(java.util.Map t)
putAll in interface java.util.Mappublic void clear()
clear in interface java.util.Mappublic java.util.Set keySet()
keySet in interface java.util.Mappublic java.util.Collection values()
values in interface java.util.Mappublic java.util.Set entrySet()
entrySet in interface java.util.Mappublic boolean equals(java.lang.Object other)
equals in interface java.util.Mapequals in class java.lang.Objectpublic int hashCode()
hashCode in interface java.util.MaphashCode in class java.lang.Objectpublic void parse(java.io.InputStream in)
throws java.io.IOException
java.io.IOException© Copyright 2003 The Free Software Foundation, all rights reserved