Class ZipFileSlice
- java.lang.Object
-
- nonapi.io.github.classgraph.fastzipfilereader.ZipFileSlice
-
- Direct Known Subclasses:
LogicalZipFile
public class ZipFileSlice extends java.lang.ObjectA zipfile slice (a sub-range of bytes within a PhysicalZipFile.
-
-
Field Summary
Fields Modifier and Type Field Description PhysicalZipFilephysicalZipFileThe underlying physical zipfile.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetPath()Get the path to this zipfile slice, e.g.inthashCode()booleanisWhitelistedAndNotBlacklisted(WhiteBlackList.WhiteBlackListLeafname jarWhiteBlackList)java.lang.StringtoString()
-
-
-
Field Detail
-
physicalZipFile
public final PhysicalZipFile physicalZipFile
The underlying physical zipfile.
-
-
Method Detail
-
isWhitelistedAndNotBlacklisted
public boolean isWhitelistedAndNotBlacklisted(WhiteBlackList.WhiteBlackListLeafname jarWhiteBlackList)
- Returns:
- true if this zipfile slice, and all of its parent slices, are whitelisted and not blacklisted in the jarfile white/blacklist.
-
getPath
public java.lang.String getPath()
Get the path to this zipfile slice, e.g. "/path/to/jarfile.jar!/nestedjar1.jar!/nestedfile".
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-