Class PhysicalZipFile
- java.lang.Object
-
- nonapi.io.github.classgraph.fastzipfilereader.PhysicalZipFile
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class PhysicalZipFile extends java.lang.Object implements java.io.Closeable
A physical zipfile, which is mmap'd using aFileChannel
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
boolean
equals(java.lang.Object obj)
java.io.File
getFile()
Get theFile
for the outermost jar file of thisPhysicalZipFile
.java.lang.String
getPath()
Get the path for thisPhysicalZipFile
, which is the file path, if it is file-backed, or a compound nested jar path, if it is memory-backed.int
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
getFile
public java.io.File getFile()
Get theFile
for the outermost jar file of thisPhysicalZipFile
.
-
getPath
public java.lang.String getPath()
Get the path for thisPhysicalZipFile
, which is the file path, if it is file-backed, or a compound nested jar path, if it is memory-backed.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-