Class LogicalZipFile
- java.lang.Object
-
- nonapi.io.github.classgraph.fastzipfilereader.ZipFileSlice
-
- nonapi.io.github.classgraph.fastzipfilereader.LogicalZipFile
-
- All Implemented Interfaces:
AutoCloseable
public class LogicalZipFile extends ZipFileSlice implements AutoCloseable
A logical zipfile, which represents a zipfile contained within aZipFileSliceof aPhysicalZipFile.
-
-
Field Summary
Fields Modifier and Type Field Description List<String>additionalClassPathEntriesToScan"Class-Path" entries encountered in the manifest file.booleanisJREJarIf true, this is a JRE jar.booleanisMultiReleaseJarIf true, this is a multi-release jar.static StringMULTI_RELEASE_PATH_PREFIX"META-INF/versions/"-
Fields inherited from class nonapi.io.github.classgraph.fastzipfilereader.ZipFileSlice
physicalZipFile
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()List<FastZipEntry>getEntries()Get the zipfile entries.int[]getMultiReleaseVersionsFound()Return the multi-release versions for which this jar contained at least one resource, in decreasing order.StringtoString()-
Methods inherited from class nonapi.io.github.classgraph.fastzipfilereader.ZipFileSlice
equals, getPath, hashCode, isWhitelistedAndNotBlacklisted
-
-
-
-
Field Detail
-
isJREJar
public boolean isJREJar
If true, this is a JRE jar.
-
isMultiReleaseJar
public boolean isMultiReleaseJar
If true, this is a multi-release jar.
-
additionalClassPathEntriesToScan
public List<String> additionalClassPathEntriesToScan
"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.
-
MULTI_RELEASE_PATH_PREFIX
public static final String MULTI_RELEASE_PATH_PREFIX
"META-INF/versions/"- See Also:
- Constant Field Values
-
-
Method Detail
-
getEntries
public List<FastZipEntry> getEntries()
Get the zipfile entries.
-
getMultiReleaseVersionsFound
public int[] getMultiReleaseVersionsFound()
Return the multi-release versions for which this jar contained at least one resource, in decreasing order.
-
toString
public String toString()
- Overrides:
toStringin classZipFileSlice
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable
-
-