Class ZipFileSlice
- java.lang.Object
-
- nonapi.io.github.classgraph.fastzipfilereader.ZipFileSlice
-
- Direct Known Subclasses:
LogicalZipFile
public class ZipFileSlice extends Object
A zipfile slice (a sub-range of bytes within a PhysicalZipFile.
-
-
Field Summary
Fields Modifier and Type Field Description PhysicalZipFile
physicalZipFile
The underlying physical zipfile.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getPath()
Get the path to this zipfile slice, e.g.int
hashCode()
boolean
isWhitelistedAndNotBlacklisted(WhiteBlackList.WhiteBlackListLeafname jarWhiteBlackList)
String
toString()
-
-
-
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 String getPath()
Get the path to this zipfile slice, e.g. "/path/to/jarfile.jar!/nestedjar1.jar!/nestedfile".
-
-