All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.archiveaccessor.filestore.Manifest

java.lang.Object
   |
   +----com.ibm.archiveaccessor.filestore.Manifest

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


Constructor Index

 o Manifest()
Creates a manifest.
 o Manifest(byte[])
Creates a manifest from an array of bytes.
 o Manifest(String[])
Creates 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()
Empties 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 remove(String)
Removes the named manifest section.
 o sections()
Returns an enumeration of the sections of the manifest.

Constructors

 o Manifest
 public Manifest()
Creates a manifest.

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

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

Methods

 o clone
 public synchronized Object clone()
Clones the manifest.

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

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

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

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

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

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

 o add
 public synchronized 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