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.
Manifest()
-
Manifest(byte[])
- Create a manifest from an array of bytes.
Manifest(String[])
- Create a manifest from an array of strings.
add(ManifestSection)
- Adds the manifest section, unless the name starts with
META-INF/ or /META-INF/
clear()
- Empty 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.
getFull()
- Returns the array of strings comprising the manifest.
remove(String)
- Removes the named manifest section.
sections()
- Returns an enumeration of the sections of the manifest.
Manifest
public Manifest()
Manifest
public Manifest(String[] txt)
- Create a manifest from an array of strings.
Manifest
public Manifest(byte[] data)
- Create a manifest from an array of bytes.
clone
public Object clone()
- Clones the manifest.
- Overrides:
- clone in class Object
clear
public void clear()
- Empty the manifest.
get
public String[] get()
- Returns the array of strings comprising the manifest.
getFull
public String[] getFull()
- Returns the array of strings comprising the manifest.
(Line delimiters are included.)
getBytes
public byte[] getBytes()
- Returns the manifest as an array of bytes.
get
public ManifestSection get(String name)
- Returns the named manifest section. Null is returned if
there is no matching section.
force
public ManifestSection force(String name)
- Returns the named manifest section. The section is created if necessary.
remove
public void remove(String name)
- Removes the named manifest section.
add
public 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