Java Utililty Methods Manifest Create

List of utility methods to do Manifest Create

Description

The list of methods to do Manifest Create are organized into topic(s).

Method

Mapload(final InputStream stream)
load
final Map<String, String> props = new HashMap<String, String>();
final Manifest manifest = new Manifest(stream);
final Attributes attrs = manifest.getMainAttributes();
for (final Object key : attrs.keySet()) {
    final String value = attrs.getValue(Attributes.Name.class.cast(key));
    props.put(key.toString(), value);
return props;
...
ManifestloadManifest(byte[] bytes)
Load a java manifest file.
ByteArrayInputStream fis = new ByteArrayInputStream(bytes);
try {
    Manifest mf = new Manifest(fis);
    return mf;
} finally {
    fis.close();