Class NestedJarHandler.RecyclableInflater
- java.lang.Object
-
- nonapi.io.github.classgraph.fastzipfilereader.NestedJarHandler.RecyclableInflater
-
- All Implemented Interfaces:
java.lang.AutoCloseable,Resettable
- Enclosing class:
- NestedJarHandler
private static class NestedJarHandler.RecyclableInflater extends java.lang.Object implements Resettable, java.lang.AutoCloseable
Wrapper class that allows anInflaterinstance to be reset for reuse and then recycled by aRecycler.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.zip.InflaterinflaterCreate a newInflaterinstance with the "nowrap" option (which is needed for zipfile entries).
-
Constructor Summary
Constructors Modifier Constructor Description privateRecyclableInflater()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Called when theRecyclerinstance is closed, to destroy theInflaterinstance.java.util.zip.InflatergetInflater()Get theInflaterinstance.voidreset()Called when anInflaterinstance is recycled, to reset the inflater so it can accept new input.
-
-
-
Method Detail
-
getInflater
public java.util.zip.Inflater getInflater()
Get theInflaterinstance.- Returns:
- the
Inflaterinstance.
-
reset
public void reset()
Called when anInflaterinstance is recycled, to reset the inflater so it can accept new input.- Specified by:
resetin interfaceResettable
-
close
public void close()
Called when theRecyclerinstance is closed, to destroy theInflaterinstance.- Specified by:
closein interfacejava.lang.AutoCloseable
-
-