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.
-
Manifest()
- Creates a manifest.
-
Manifest(byte[])
- Creates a manifest from an array of bytes.
-
Manifest(String[])
- Creates a manifest from an array of strings.
-
add(ManifestSection)
- Adds the manifest section, unless the name starts with
META-INF/ or /META-INF/
-
clear()
- Empties the manifest.
-
clone()
- Clones the manifest.
-
force(String)
- Returns the named manifest section.
-
get()
- Returns the array of strings comprising the manifest.
-
get(String)
- Returns the named manifest section.
-
getBytes()
- Returns the manifest as an array of bytes.
-
remove(String)
- Removes the named manifest section.
-
sections()
- Returns an enumeration of the sections of the manifest.
Manifest
public Manifest()
- Creates a manifest.
Manifest
public Manifest(String txt[])
- Creates a manifest from an array of strings.
Manifest
public Manifest(byte data[])
- Creates a manifest from an array of bytes.
clone
public synchronized Object clone()
- Clones the manifest.
- Overrides:
- clone in class Object
clear
public synchronized void clear()
- Empties the manifest.
get
public synchronized String[] get()
- Returns the array of strings comprising the manifest.
getBytes
public byte[] getBytes()
- Returns the manifest as an array of bytes.
get
public synchronized ManifestSection get(String name)
- Returns the named manifest section. Null is returned if
there is no matching section.
force
public synchronized ManifestSection force(String name)
- Returns the named manifest section. The section is created if necessary.
remove
public synchronized void remove(String name)
- Removes the named manifest section.
add
public synchronized void add(ManifestSection ms)
- Adds the manifest section, unless the name starts with
META-INF/ or /META-INF/
sections
public Enumeration sections()
- Returns an enumeration of the sections of the manifest.
All Packages Class Hierarchy This Package Previous Next Index