java.lang.Object | |
↳ | java.util.jar.Manifest |
The Manifest
class is used to obtain attribute information for a
JarFile
and its entries.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new
Manifest instance.
| |||||||||||
Creates a new
Manifest instance using the attributes obtained
from the input stream.
| |||||||||||
Creates a new
Manifest instance.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Resets the both the main attributes as well as the entry attributes
associated with this
Manifest .
| |||||||||||
Creates a copy of this
Manifest .
| |||||||||||
Determines if the receiver is equal to the parameter object.
| |||||||||||
Returns the
Attributes associated with the parameter entry
name .
| |||||||||||
Returns a map containing the
Attributes for each entry in the
Manifest .
| |||||||||||
Returns the main
Attributes of the JarFile .
| |||||||||||
Returns the hash code for this instance.
| |||||||||||
Merges name/attribute pairs read from the input stream
is into this manifest.
| |||||||||||
Writes this
Manifest 's name/attributes pairs to the given OutputStream .
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Creates a new Manifest
instance using the attributes obtained
from the input stream.
is | InputStream to parse for attributes. |
---|
IOException | if an IO error occurs while creating this Manifest
|
---|
Creates a new Manifest
instance. The new instance will have the
same attributes as those found in the parameter Manifest
.
man | Manifest instance to obtain attributes from.
|
---|
Resets the both the main attributes as well as the entry attributes
associated with this Manifest
.
Creates a copy of this Manifest
. The returned Manifest
will equal the Manifest
from which it was cloned.
Determines if the receiver is equal to the parameter object. Two Manifest
s are equal if they have identical main attributes as well as
identical entry attributes.
o | the object to compare against. |
---|
true
if the manifests are equal, false
otherwise
Returns the Attributes
associated with the parameter entry
name
.
name | the name of the entry to obtain Attributes from. |
---|
null
if the entry does
not exist.
Returns a map containing the Attributes
for each entry in the
Manifest
.
Returns the main Attributes
of the JarFile
.
Attributes
associated with the source JarFile
.
Returns the hash code for this instance.
Manifest
's hashCode.
Merges name/attribute pairs read from the input stream is
into this manifest.
is | The InputStream to read from. |
---|
IOException | If an error occurs reading the manifest. |
---|
Writes this Manifest
's name/attributes pairs to the given OutputStream
.
The MANIFEST_VERSION
or SIGNATURE_VERSION
attribute must be set before
calling this method, or no attributes will be written.
IOException | If an error occurs writing the Manifest .
|
---|