Package org.apache.poi.openxml4j.util
Class ZipArchiveThresholdInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.apache.poi.openxml4j.util.ZipArchiveThresholdInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Field Summary
Fields inherited from class java.io.FilterInputStream
in -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintread()intread(byte[] b, int off, int len) voidsetGuardState(boolean guardState) De-/activate threshold check.longskip(long n) Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, resetMethods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
ZipArchiveThresholdInputStream
-
-
Method Details
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
skip
- Overrides:
skipin classFilterInputStream- Throws:
IOException
-
setGuardState
public void setGuardState(boolean guardState) De-/activate threshold check. A disabled guard might make sense, when POI is processing its own temporary data (see #59743)- Parameters:
guardState-true(= default) enables the threshold check
-