Package io.github.classgraph.utils
Class JarfileMetadataReader
- java.lang.Object
-
- io.github.classgraph.utils.JarfileMetadataReader
-
public class JarfileMetadataReader extends Object
Fast parser for jar manifest files.
-
-
Field Summary
Fields Modifier and Type Field Description List<String>
classPathEntriesToScan
"Class-Path" entries encountered in the manifest file.boolean
isSystemJar
If true, this is a JRE jar.List<String>
strippedPathPrefixes
A set of path prefixes that have been (or may have been) stripped fromVersionedZipEntry.unversionedPath
path strings.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.
-
-
-
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"), ifClassGraph#addNestedLibJarsToClasspath(true)
is called before scanning.
-
strippedPathPrefixes
public List<String> strippedPathPrefixes
A set of path prefixes that have been (or may have been) stripped fromVersionedZipEntry.unversionedPath
path strings.
-
-