Class ZipFileSlice

  • Direct Known Subclasses:
    LogicalZipFile

    public class ZipFileSlice
    extends Object
    A zipfile slice (a sub-range of bytes within a PhysicalZipFile.
    • 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".
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object