| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| public final Map | |
| public final Attributes | |
| public final Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | clear()
Overrides java. Clears the main Attributes as well as the entries in this Manifest. |
| public Attributes | getAttributes(String name)
Overrides java. Returns the Attributes for the specified entry name. |
| public Map | getEntries()
Overrides java. Returns a Map of the entries contained in this Manifest. |
| public Attributes | getMainAttributes()
Overrides java. Returns the main Attributes for the Manifest. |
| private void | |
| public void | read(InputStream is)
Overrides java. Reads the Manifest from the specified InputStream. |
| public void | write(OutputStream out)
Overrides java. Writes the Manifest to the specified OutputStream. |
| attributes | back to summary |
|---|---|
| public final Map<String, Attributes> attributes | |
| mainAttributes | back to summary |
|---|---|
| public final Attributes mainAttributes | |
| mappings | back to summary |
|---|---|
| public final Map<String, String> mappings | |
| ManifestProxy | back to summary |
|---|---|
| public ManifestProxy(ClassLoader cl, List<ManifestProxy. | |
| clear | back to summary |
|---|---|
| public void clear() Overrides java. Doc from java. Clears the main Attributes as well as the entries in this Manifest.
| |
| getAttributes | back to summary |
|---|---|
| public Attributes getAttributes(String name) Overrides java. Doc from java. Returns the Attributes for the specified entry name. This method is defined as:
return (Attributes)getEntries().get(name)
Though null is a valid name, when
getAttributes(null) is invoked on a Manifest
obtained from a jar file, null will be returned. While jar
files themselves do not allow null-named attributes, it is
possible to invoke getEntries on a Manifest, and
on that result, invoke put with a null key and an
arbitrary value. Subsequent invocations of
getAttributes(null) will return the just-put
value.
Note that this method does not return the manifest's main attributes;
see
| |
| getEntries | back to summary |
|---|---|
| public Map Overrides java. Doc from java. Returns a Map of the entries contained in this Manifest. Each entry
is represented by a String name (key) and associated Attributes (value).
The Map permits the
| |
| getMainAttributes | back to summary |
|---|---|
| public Attributes getMainAttributes() Overrides java. Doc from java. Returns the main Attributes for the Manifest.
| |
| merge | back to summary |
|---|---|
| private void merge(Attributes target, Attributes source) | |
| read | back to summary |
|---|---|
| public void read(InputStream is) throws IOException Overrides java. Doc from java. Reads the Manifest from the specified InputStream. The entry names and attributes read will be merged in with the current manifest entries.
| |
| write | back to summary |
|---|---|
| public void write(OutputStream out) throws IOException Overrides java. Doc from java. Writes the Manifest to the specified OutputStream. Attributes.Name.MANIFEST_VERSION must be set in MainAttributes prior to invoking this method.
| |
| Access | Constructor and Description |
|---|---|
| public |
| key | back to summary |
|---|---|
| pack-priv final String key | |
| separator | back to summary |
|---|---|
| pack-priv final String separator | |
| SeparatorMappings | back to summary |
|---|---|
| public SeparatorMappings(String key, String separator) | |