Java Jar Manifest getManifest(String path)

Here you can find the source of getManifest(String path)

Description

get Manifest

License

Open Source License

Declaration

private static Manifest getManifest(String path) throws IOException 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.io.File;
import java.io.IOException;

import java.util.jar.JarFile;
import java.util.jar.Manifest;

public class Main {
    private static Manifest getManifest(String path) throws IOException {
        File jar = new File(path);
        JarFile jf = new JarFile(new File(path));
        Manifest mf = new JarFile(jar).getManifest();
        jf.close();/*from   w  w w .  ja v a  2s. c om*/
        return mf;
    }
}

Related

  1. getManifest(File jarFile)
  2. getManifest(File pluginFile)
  3. getManifest(final String jarFileName)
  4. getManifest(JarFile pluginJarFile)
  5. getManifest(String className)
  6. getManifest(ZipFile zip)
  7. getManifest(ZipFile zipFile)
  8. getManifestAttribute(InputStream in, String attr)
  9. getManifestAttribute(Manifest m)