Class ZipFileSlice
- java.lang.Object
-
- nonapi.io.github.classgraph.fastzipfilereader.ZipFileSlice
-
- Direct Known Subclasses:
LogicalZipFile
public class ZipFileSlice extends java.lang.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(java.lang.Object obj)
java.lang.String
getPath()
Get the path to this zipfile slice, e.g.int
hashCode()
boolean
isWhitelistedAndNotBlacklisted(WhiteBlackList.WhiteBlackListLeafname jarWhiteBlackList)
java.lang.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 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:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-