List of utility methods to do Manifest Create
Map | load(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; ... |
Manifest | loadManifest(byte[] bytes) Load a java manifest file. ByteArrayInputStream fis = new ByteArrayInputStream(bytes); try { Manifest mf = new Manifest(fis); return mf; } finally { fis.close(); |