java.util.jar
public
class
java.util.jar.Manifest
The Manifest class is used to obtain attribute information for a JarFile and its entries.
Summary
Public Constructors
Public Methods
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
Details
Public Constructors
public
Manifest()
Constructs a new Manifest instance.
Constructs a new Manifest instance using the attributes obtained from is.
Parameters
is
| InputStream to parse for attributes |
Throws
IOException
| if an IO error occurs while creating this Manifest
|
public
Manifest(Manifest man)
Constructs a new Manifest instance. The new instance will have the same attributes as
those found in the parameter Manifest.
Parameters
man
| Manifest instance to obtain attributes from
|
Public Methods
public
void
clear()
Resets the both the mainAttributes as well as the entry Attributes associated with this
Manifest.
public
Object
clone()
Creates a copy of this Manifest. The returned Manifest will equal the Manifest from which
it was cloned.
public
boolean
equals(Object o)
Determines if the receiver is equal to the parameter Object. Two Manifests are equal if
they have identical main Attributes as well as identical entry Attributes.
Parameters
o
| The Object to compare against. |
Returns
true
if the manifests are equal, false
otherwise
Returns the Attributes associated with the parameter entry name
Parameters
name
| The name of the entry to obtain Attributes for. |
Returns
- The Attributes for the entry or null if the entry does not exist.
Returns a Map containing the Attributes for each entry in the Manifest.
Returns
- A Map of entry attributes
public
Attributes
getMainAttributes()
Returns the main Attributes of the JarFile.
Returns
- Main Attributes associated with the source JarFile
public
int
hashCode()
Returns the hashCode for this instance.
Constructs a new Manifest instance obtaining Attribute information from the parameter
InputStream.
Parameters
is
| The InputStream to read from |
Writes out the attribute information of the receiver to the specified OutputStream
Parameters
os
| The OutputStream to write to. |