|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.tools.ant.taskdefs.Manifest
Class to manage Manifest information
Inner Class Summary | |
static class |
Manifest.Attribute
Class to hold manifest attributes |
static class |
Manifest.Section
Class to represent an individual section in the Manifest. |
Field Summary | |
static java.lang.String |
ATTRIBUTE_FROM
THe From Header is disallowed in a Manifest |
static java.lang.String |
ATTRIBUTE_MANIFEST_VERSION
The standard manifest version header |
static java.lang.String |
ATTRIBUTE_NAME
The Name Attribute is the first in a named section |
static java.lang.String |
ATTRIBUTE_SIGNATURE_VERSION
The standard Signature Version header |
static java.lang.String |
DEFAULT_MANIFEST_VERSION
Default Manifest version if one is not specified |
static int |
MAX_LINE_LENGTH
The max length of a line in a Manifest |
Constructor Summary | |
Manifest()
Construct an empty manifest |
|
Manifest(java.io.InputStream is)
Read a manifest file from the given input stream |
Method Summary | |
void |
addConfiguredAttribute(Manifest.Attribute attribute)
|
void |
addConfiguredSection(Manifest.Section section)
|
boolean |
equals(java.lang.Object rhs)
|
java.util.Enumeration |
getWarnings()
Get the warnings for this manifest. |
void |
merge(Manifest other)
Merge the contents of the given manifest into this manifest |
java.lang.String |
toString()
Convert the manifest to its string representation |
void |
write(java.io.PrintWriter writer)
Write the manifest out to a print writer. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String ATTRIBUTE_MANIFEST_VERSION
public static final java.lang.String ATTRIBUTE_SIGNATURE_VERSION
public static final java.lang.String ATTRIBUTE_NAME
public static final java.lang.String ATTRIBUTE_FROM
public static final java.lang.String DEFAULT_MANIFEST_VERSION
public static final int MAX_LINE_LENGTH
Constructor Detail |
public Manifest()
public Manifest(java.io.InputStream is) throws ManifestException, java.io.IOException
is
- the input stream from which the Manifest is readManifestException
- if the manifest is not valid according to the JAR specjava.io.IOException
- if the manifest cannot be read from the reader.Method Detail |
public void addConfiguredSection(Manifest.Section section) throws ManifestException
public void addConfiguredAttribute(Manifest.Attribute attribute) throws ManifestException
public void merge(Manifest other) throws ManifestException
other
- the Manifest to be merged with this one.ManifestException
- if there is a problem merging the manfest according
to the Manifest spec.public void write(java.io.PrintWriter writer) throws java.io.IOException
writer
- the Writer to which the manifest is writtenjava.io.IOException
- if the manifest cannot be writtenpublic java.lang.String toString()
toString
in class java.lang.Object
public java.util.Enumeration getWarnings()
public boolean equals(java.lang.Object rhs)
equals
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |