Constructor and Description |
---|
Manifest()
Constructs a new Manifest instance.
|
Manifest(InputStream is)
Constructs a new Manifest instance using the attributes obtained from is.
|
Manifest(Manifest man)
Constructs a new Manifest instance.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Resets the both the mainAttributes as well as the entry Attributes
associated with this Manifest.
|
Object |
clone()
Creates a copy of this Manifest.
|
boolean |
equals(Object o)
Determines if the receiver is equal to the parameter Object.
|
Attributes |
getAttributes(String name)
Returns the Attributes associated with the parameter entry name
|
Map |
getEntries()
Returns a Map containing the Attributes for each entry in the Manifest.
|
Attributes |
getMainAttributes()
Returns the main Attributes of the JarFile.
|
int |
hashCode()
Returns the hashCode for this instance.
|
void |
read(InputStream is)
Constructs a new Manifest instance obtaining Attribute information from
the parameter InputStream.
|
void |
write(OutputStream os)
Writes out the attribute information of the receiver to the specified
OutputStream
|
public Manifest()
public Manifest(InputStream is) throws IOException
is
- InputStream to parse for attributesIOException
- if an IO error occurs while creating this Manifestpublic Manifest(Manifest man)
man
- Manifest instance to obtain attributes frompublic void clear()
public Attributes getAttributes(String name)
name
- The name of the entry to obtain Attributes for.public Map getEntries()
public Attributes getMainAttributes()
public Object clone()
public void read(InputStream is) throws IOException
is
- The InputStream to read fromIOException
- If an error occurs reading the Manifest.public void write(OutputStream os) throws IOException
os
- The OutputStream to write to.IOException
- If an error occurs writing the Manifestpublic int hashCode()
public boolean equals(Object o)