Class ZipFileSlice
java.lang.Object
nonapi.io.github.classgraph.fastzipfilereader.ZipFileSlice
- Direct Known Subclasses:
LogicalZipFile
A zipfile slice (a sub-range of bytes within a PhysicalZipFile.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final nonapi.io.github.classgraph.fastzipfilereader.PhysicalZipFileThe underlying physical zipfile.TheSlicecontaining the zipfile. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet the parent ZipFileslice, or return null if this is a toplevel slice (i.e. if this slice wraps an entire physical zipfile).getPath()Get the path of this zipfile slice, e.g.Get the name of the slice (either the entry name/path within the parent zipfile slice, or the path of the physical zipfile if this slice is a toplevel slice (i.e. if this slice wraps an entire physical zipfile).Get the physicalFilethat this ZipFileSlice is a slice of.inthashCode()booleanisAcceptedAndNotRejected(AcceptReject.AcceptRejectLeafname jarAcceptReject) Check whether this zipfile slice and all of its parent slices are accepted and not rejected in the jarfile accept/reject criteria.toString()
-
Field Details
-
physicalZipFile
protected final nonapi.io.github.classgraph.fastzipfilereader.PhysicalZipFile physicalZipFileThe underlying physical zipfile. -
slice
-
-
Method Details
-
isAcceptedAndNotRejected
Check whether this zipfile slice and all of its parent slices are accepted and not rejected in the jarfile accept/reject criteria.- Parameters:
jarAcceptReject- the jar accept/reject criteria- Returns:
- true if this zipfile slice and all of its parent slices are accepted and not rejected in the jarfile accept/reject criteria.
-
getParentZipFileSlice
Get the parent ZipFileslice, or return null if this is a toplevel slice (i.e. if this slice wraps an entire physical zipfile).- Returns:
- the parent ZipFileslice, or null if this is a toplevel slice.
-
getPathWithinParentZipFileSlice
Get the name of the slice (either the entry name/path within the parent zipfile slice, or the path of the physical zipfile if this slice is a toplevel slice (i.e. if this slice wraps an entire physical zipfile).- Returns:
- the name of the slice.
-
getPath
Get the path of this zipfile slice, e.g. "/path/to/jarfile.jar!/nestedjar1.jar".- Returns:
- the path of this zipfile slice.
-
getPhysicalFile
-
equals
-
hashCode
-
toString
-