API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.util.jar. Attributes View Source
Author(s)
David Connelly
Since
1.2
Version
1.54, 04/21/06
Serial
Hierarchy
 Object
      Attributes
Implements
 Map
 Cloneable
Subclasses
Description
public class Attributes
  The Attributes class maps Manifest attribute names to associated string values.
See also:    Manifest
Constructors
public Attributes ()
Constructs a new, empty Attributes object with default size.
public Attributes (Attributes attr)
  Constructs a new Attributes object with the same attribute name-value mappings as in the specified Attributes.
public Attributes (int size)
  Constructs a new, empty Attributes object with the specified initial size.
Methods
Hide/Show inherited methods
public void clear () [Specified in Map]
Removes all attributes from this Map.
public Object clone ()
  Returns a copy of the Attributes, implemented as follows:
public boolean containsKey (Object name) [Specified in Map]
  Returns true if this Map contains the specified attribute name (key).
public boolean containsValue (Object value) [Specified in Map]
  Returns true if this Map maps one or more attribute names (keys) to the specified value.
public Set<Entry<Object, Object>> entrySet () [Specified in Map]
Returns a Collection view of the attribute name-value mappings contained in this Map.
public boolean equals (Object o) [Specified in Map]
  Compares the specified Attributes object with this Map for equality.
public Object get (Object name) [Specified in Map]
  Returns the value of the specified attribute name, or null if the attribute name was not found.
public String getValue (Name name)
  Returns the value of the specified Attributes.Name, or null if the attribute was not found.
public String getValue (String name)
  Returns the value of the specified attribute name, specified as a string, or null if the attribute was not found.
public int hashCode () [Specified in Map]
Returns the hash code value for this Map.
public boolean isEmpty () [Specified in Map]
Returns true if this Map contains no attributes.
public Set<Object> keySet () [Specified in Map]
Returns a Set view of the attribute names (keys) contained in this Map.
public Object put (Object name, Object value)
  Associates the specified value with the specified attribute name (key) in this Map.
public void putAll (Map<Object, Object> attr)
  Copies all of the attribute name-value mappings from the specified Attributes to this Map.
public String putValue (String name, String value)
  Associates the specified value with the specified attribute name, specified as a String.
pack-private void read (FastInputStream is, byte[] lbuf) throws IOException
public Object remove (Object name) [Specified in Map]
  Removes the attribute with the specified name (key) from this Map.
public int size () [Specified in Map]
Returns the number of attributes in this Map.
public Collection<Object> values () [Specified in Map]
Returns a Collection view of the attribute values contained in this Map.
pack-private void write (DataOutputStream os) throws IOException
pack-private void writeMain (DataOutputStream out) throws IOException
Fields
Hide/Show inherited fields
protected Map<Object, Object> map
The attribute name-value mappings.
Nested Classes
  Attributes.Name
The Attributes.Name class represents an attribute name stored in this Map.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar