Class RecyclableInflater
- java.lang.Object
-
- nonapi.io.github.classgraph.fastzipfilereader.RecyclableInflater
-
- All Implemented Interfaces:
java.lang.AutoCloseable,Resettable
public class 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.
-
-
Constructor Summary
Constructors Constructor Description RecyclableInflater()
-
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.
-
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
-
-