|
JavaTM 2 Platform Std. Ed. v1.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--java.util.jar.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. Documentation on the Manifest format can be found at :
http://java.sun.com/products/jdk/1.2/docs/guide/jar/manifest.html
Attributes| Constructor Summary | |
Manifest()
Constructs a new, empty Manifest. |
|
Manifest(InputStream is)
Constructs a new Manifest from the specified input stream. |
|
Manifest(Manifest man)
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, implemented as follows: |
boolean |
equals(Object o)
Returns true if the specified Object is also a Manifest and has the same main Attributes and entries. |
Attributes |
getAttributes(String name)
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(InputStream is)
Reads the Manifest from the specified InputStream. |
void |
write(OutputStream out)
Writes the Manifest to the specified OutputStream. |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Manifest()
public Manifest(InputStream is)
throws IOException
is - the input stream containing manifest dataIOException - if an I/O error has occuredpublic Manifest(Manifest man)
man - the Manifest to copy| Method Detail |
public Attributes getMainAttributes()
public Map getEntries()
public Attributes getAttributes(String name)
return (Attributes)getEntries().get(name)
public void clear()
public void write(OutputStream out)
throws IOException
out - the output streamIOException - if an I/O error has occurred
public void read(InputStream is)
throws IOException
is - the input streamIOException - if an I/O error has occurredpublic boolean equals(Object o)
equals in class Objecto - the object to be comparedpublic int hashCode()
hashCode in class Objectjava.lang.ObjectObject.equals(java.lang.Object),
Hashtablepublic Object clone()
public Object clone() { return new Manifest(this); }
clone in class Object
|
JavaTM 2 Platform Std. Ed. v1.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.