public class ZipFileSlice
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected nonapi.io.github.classgraph.fastzipfilereader.PhysicalZipFile |
physicalZipFile
The underlying physical zipfile.
|
Slice |
slice
The
Slice containing the zipfile. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
ZipFileSlice |
getParentZipFileSlice()
Get the parent ZipFileslice, or return null if this is a toplevel slice (i.e. if this slice wraps an entire
physical zipfile).
|
java.lang.String |
getPath()
Get the path of this zipfile slice, e.g.
|
java.lang.String |
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).
|
java.io.File |
getPhysicalFile()
Get the physical
File that this ZipFileSlice is a slice of. |
int |
hashCode() |
boolean |
isAcceptedAndNotRejected(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.
|
java.lang.String |
toString() |
protected final nonapi.io.github.classgraph.fastzipfilereader.PhysicalZipFile physicalZipFile
public boolean isAcceptedAndNotRejected(AcceptReject.AcceptRejectLeafname jarAcceptReject)
jarAcceptReject - the jar accept/reject criteriapublic ZipFileSlice getParentZipFileSlice()
public java.lang.String getPathWithinParentZipFileSlice()
public java.lang.String getPath()
public java.io.File getPhysicalFile()
File that this ZipFileSlice is a slice of.File that this ZipFileSlice is a slice of, or null if this file was downloaded
from a URL directly to RAM.public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object