Code example for Manifest

Methods: getMainAttributes

0
FileInputStream in = new FileInputStream(manifestFile);
 
      try 
      { 
        Manifest manifest = new Manifest(in);
        java.util.jar.Attributes attributes = manifest.getMainAttributes();
        return attributes.getValue("Bundle-Version");
      } 
      finally 
      { 
        in.close();
      } 
    } 
 
    return null; 
  } 
 
  private String getDocProject(String componentID) throws Exception
  { 
Connect your IDE to all the code out there  Get Codota for Java