|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object![]()
![]()
![]()
java.util.jar.Manifest

public class Manifest


The Manifest class is used to maintain Manifest entry names and their associated Attributes. There are main Manifest Attributes as well as per-entry Attributes. For information on the Manifest format, please see the Manifest format specification.
Attributes

| Constructor Summary | |
|---|---|
Manifest
Constructs a new, empty Manifest. |
|
Manifest
Constructs a new Manifest from the specified input stream. |
|
Manifest
Constructs a new Manifest that is a copy of the specified Manifest. |
|
| Method Summary | |
|---|---|
void |
clear
Clears the main Attributes as well as the entries in this Manifest. |
Object |
clone
Returns a shallow copy of this Manifest. |
boolean |
equals
Returns true if the specified Object is also a Manifest and has the same main Attributes and entries. |
Attributes |
getAttributes
Returns the Attributes for the specified entry name. |
Map |
getEntries
Returns a Map of the entries contained in this Manifest. |
Attributes |
getMainAttributes
Returns the main Attributes for the Manifest. |
int |
hashCode
Returns the hash code for this Manifest. |
void |
read
Reads the Manifest from the specified InputStream. |
void |
write
Writes the Manifest to the specified OutputStream. |
Methods inherited from class java.lang.Object ![]() |
|---|
finalize |
| Constructor Detail |
|---|

public Manifest()

public Manifest(InputStream![]()
![]()
is) throws IOException
![]()
![]()
is - the input stream containing manifest data
IOException

- if an I/O error has occured

public Manifest(Manifest![]()
![]()
man)
man - the Manifest to copy| Method Detail |
|---|

public Attributes![]()
![]()
getMainAttributes()

public Map![]()
![]()
<String
![]()
![]()
,Attributes
![]()
![]()
> getEntries()

public Attributes![]()
![]()
getAttributes(String
![]()
![]()
name)
return (Attributes)getEntries().get(name)
name - entry name

public void clear()

public void write(OutputStream![]()
![]()
out) throws IOException
![]()
![]()
out - the output stream
IOException

- if an I/O error has occurredgetMainAttributes()


public void read(InputStream![]()
![]()
is) throws IOException
![]()
![]()
is - the input stream
IOException

- if an I/O error has occurred

public boolean equals(Object![]()
![]()
o)
equals

in class Object

o - the object to be compared
Object.hashCode()
,
Hashtable


public int hashCode()
hashCode

in class Object

Object.equals(java.lang.Object)
,
Hashtable


public Object![]()
![]()
clone()
public Object clone() { return new Manifest(this); }
clone

in class Object

Cloneable

|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||