| Modifier and Type | Class and Description |
|---|---|
| public static class | Manifest.Attribute
An attribute for the manifest. |
| public static class | Manifest.Section
A manifest section - you can nest attribute elements into sections. |
| Modifier and Type | Field and Description |
|---|---|
| public static final String | ATTRIBUTE_CLASSPATH
The Class-Path Header is special - it can be duplicated |
| private static final String | |
| public static final String | ATTRIBUTE_FROM
The From Header is disallowed in a Manifest |
| private static final String | |
| public static final String | ATTRIBUTE_MANIFEST_VERSION
The standard manifest version header |
| private static final String | |
| public static final String | ATTRIBUTE_NAME
The Name Attribute is the first in a named section |
| private static final String | |
| public static final String | ATTRIBUTE_SIGNATURE_VERSION
The standard Signature Version header |
| public static final String | DEFAULT_MANIFEST_VERSION
Default Manifest version if one is not specified |
| public static final String | EOL
The End-Of-Line marker in manifests |
| public static final String | ERROR_FROM_FORBIDDEN
Error for attributes |
| public static final Charset | JAR_CHARSET
Charset to be used for JAR files. |
| public static final String | JAR_ENCODING
Encoding to be used for JAR files. |
| private Manifest. | mainSection
The main section of this manifest |
| private String | manifestVersion
The version of this manifest |
| public static final int | MAX_LINE_LENGTH
The max length of a line in a Manifest |
| public static final int | MAX_SECTION_LENGTH
Max length of a line section which is continued. |
| private Map | sections
The named sections of this manifest |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addConfiguredAttribute(Manifest.
the attribute to be added. attributeAdd an attribute to the manifest - it is added to the main section. |
| public void | addConfiguredSection(Manifest.
the manifest section to be added sectionAdd a section to the manifest |
| public boolean | Returns: true if the version, main and sections are the same.the object to check for equality. rhs)Overrides java. |
| public static Manifest | Returns: the default manifest.Construct a manifest from Ant's default manifest file. |
| public Manifest. | |
| public String | |
| public Manifest. | Returns: the specified section or null if that section does not exist in the manifestthe name of the section desired. name)Get a particular section from the manifest |
| public Enumeration | |
| public Enumeration | |
| public int | Returns: a hashcode based on the version, main and sections.Overrides java. |
| public void | |
| public void | |
| public void | |
| public String | Returns: a multiline string with the Manifest as it appears in a Manifest file.Overrides java. |
| public void | write(PrintWriter
the Writer to which the manifest is written writer)Write the manifest out to a print writer without flattening multi-values attributes (i.e. Class-Path). |
| public void | write(PrintWriter
the Writer to which the manifest is written writer, boolean whether to collapse multi-valued attributes
(i.e. potentially Class-Path) Class-Path into a single
attribute. flatten)Write the manifest out to a print writer. |