Class JarfileMetadataReader


  • public class JarfileMetadataReader
    extends Object
    Fast parser for jar manifest files.
    • Field Detail

      • isSystemJar

        public boolean isSystemJar
        If true, this is a JRE jar.
      • versionedZipEntries

        public List<VersionedZipEntry> versionedZipEntries
        The VersionedZipEntries for the zipfile, consisting of the ZipEntry, the version number (for multi-release jars), and the ZipEntry path with any version prefix path and/or Spring-Boot prefix path stripped. N.B. the wrapped ZipEntries contain only static metadata, so can be reused between different ZipFile instances, even though ZipFile imposes a synchronized lock around each instance.
      • classPathEntriesToScan

        public List<String> classPathEntriesToScan
        "Class-Path" entries encountered in the manifest file. Also includes any "BOOT-INF/classes" or "WEB-INF/classes" package roots. Will also include classpath entries for any jars found in one of the lib directories of the jar ("lib/", "BOOT-INF/lib", "WEB-INF/lib", or "WEB-INF/lib-provided"), if ClassGraph#addNestedLibJarsToClasspath(true) is called before scanning.