Class ManifestRetriever


  • public class ManifestRetriever
    extends Object
    Retrieves a jar manifest, if available.
    • Constructor Detail

      • ManifestRetriever

        public ManifestRetriever​(Class<?> clazz)
        Parameters:
        clazz - a class in the jar to get a manifest for
    • Method Detail

      • getManifest

        public Manifest getManifest()
        Returns the jar manifest associated with this instance.
        Returns:
        returns a manifest. If the class is not in a jar, the manifest is empty
      • failed

        public boolean failed()
        Returns true if getManifest has been called and the manifest could not be read.
        Returns:
        true if getManifest previously failed, false otherwise