All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Class ORG.opengroup.jar.Manifest

java.lang.Object
    |
    +----ORG.opengroup.jar.Manifest

public class Manifest
extends Object
implements Serializable, Cloneable
Represents a manifest of a jar file.


Constructor Index

 o Manifest()
 o Manifest(byte[])
Create a manifest from an array of bytes.
 o Manifest(String[])
Create a manifest from an array of strings.

Method Index

 o add(ManifestSection)
Adds the manifest section, unless the name starts with META-INF/ or /META-INF/
 o clear()
Empty the manifest.
 o clone()
Clones the manifest.
 o force(String)
Returns the named manifest section.
 o get()
Returns the array of strings comprising the manifest.
 o get(String)
Returns the named manifest section.
 o getBytes()
Returns the manifest as an array of bytes.
 o getFull()
Returns the array of strings comprising the manifest.
 o remove(String)
Removes the named manifest section.
 o sections()
Returns an enumeration of the sections of the manifest.

Constructors

 o Manifest
public Manifest()
 o Manifest
public Manifest(String[] txt)
Create a manifest from an array of strings.

 o Manifest
public Manifest(byte[] data)
Create a manifest from an array of bytes.

Methods

 o clone
public Object clone()
Clones the manifest.

Overrides:
clone in class Object
 o clear
public void clear()
Empty the manifest.

 o get
public String[] get()
Returns the array of strings comprising the manifest.

 o getFull
public String[] getFull()
Returns the array of strings comprising the manifest. (Line delimiters are included.)

 o getBytes
public byte[] getBytes()
Returns the manifest as an array of bytes.

 o get
public ManifestSection get(String name)
Returns the named manifest section. Null is returned if there is no matching section.

 o force
public ManifestSection force(String name)
Returns the named manifest section. The section is created if necessary.

 o remove
public void remove(String name)
Removes the named manifest section.

 o add
public void add(ManifestSection ms)
Adds the manifest section, unless the name starts with META-INF/ or /META-INF/

 o sections
public Enumeration sections()
Returns an enumeration of the sections of the manifest.


All Packages  Class Hierarchy  This Package  Previous  Next  Index