|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.jar.Manifest
public class Manifest
The Manifest class is used to obtain attribute information for a JarFile and its entries.
| Constructor Summary | |
|---|---|
Manifest()
Constructs a new Manifest instance. |
|
Manifest(InputStream is)
Constructs a new Manifest instance using the attributes obtained from is. |
|
Manifest(InputStream is,
boolean readChunks)
|
|
Manifest(Manifest man)
Constructs a new Manifest instance. |
|
| Method Summary | |
|---|---|
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 |
(package private) byte[] |
getChunk(String name)
|
Map<String,Attributes> |
getEntries()
Returns a Map containing the Attributes for each entry in the Manifest. |
Attributes |
getMainAttributes()
Returns the main Attributes of the JarFile. |
(package private) byte[] |
getMainAttributesChunk()
|
int |
hashCode()
Returns the hashCode for this instance. |
void |
read(InputStream is)
Constructs a new Manifest instance obtaining Attribute information from the parameter InputStream. |
(package private) void |
removeChunks()
|
(package private) static void |
write(Manifest manifest,
OutputStream out)
Writes out the attribute information of the receiver to the specified OutputStream |
void |
write(OutputStream os)
Writes out the attribute information of the receiver 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 - InputStream to parse for attributes
IOException - if an IO error occurs while creating this Manifestpublic Manifest(Manifest man)
man - Manifest instance to obtain attributes from
Manifest(InputStream is,
boolean readChunks)
throws IOException
IOException| Method Detail |
|---|
public void clear()
public Attributes getAttributes(String name)
name - The name of the entry to obtain Attributes for.
public Map<String,Attributes> getEntries()
public Attributes getMainAttributes()
public Object clone()
clone in class Object
public void write(OutputStream os)
throws IOException
os - The OutputStream to write to.
IOException - If an error occurs writing the Manifest
public void read(InputStream is)
throws IOException
is - The InputStream to read from
IOException - If an error occurs reading the Manifest.public int hashCode()
hashCode in class ObjectObject.equals(java.lang.Object)public boolean equals(Object o)
equals in class Objecto - The Object to compare against.
true if the manifests are equal, false otherwiseObject.hashCode()byte[] getChunk(String name)
void removeChunks()
byte[] getMainAttributesChunk()
static void write(Manifest manifest,
OutputStream out)
throws IOException
manifest - the attribute information of the receiverout - The OutputStream to write to.
IOException - If an error occurs writing the Manifest
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||