Package org.nuxeo.ecm.core.api.impl.blob
Class ZipEntryBlob.ZipEntryInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.apache.commons.io.input.ProxyInputStream
org.nuxeo.ecm.core.api.impl.blob.ZipEntryBlob.ZipEntryInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Enclosing class:
- ZipEntryBlob
public static class ZipEntryBlob.ZipEntryInputStream
extends org.apache.commons.io.input.ProxyInputStream
InputStream
for a ZIP entry, that closes all necessary resources when closed.- Since:
- 11.5
-
Field Summary
Fields inherited from class java.io.FilterInputStream
in
-
Constructor Summary
ModifierConstructorDescriptionprotected
ZipEntryInputStream
(InputStream in, List<Closeable> closeables) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
protected static void
Factory for aZipEntryBlob.ZipEntryInputStream
.Methods inherited from class org.apache.commons.io.input.ProxyInputStream
afterRead, available, beforeRead, handleIOException, mark, markSupported, read, read, read, reset, skip
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Field Details
-
closeables
-
-
Constructor Details
-
ZipEntryInputStream
-
-
Method Details
-
of
public static ZipEntryBlob.ZipEntryInputStream of(Blob zipBlob, String entryName) throws IOException Factory for aZipEntryBlob.ZipEntryInputStream
.- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classorg.apache.commons.io.input.ProxyInputStream
- Throws:
IOException
-
close
- Throws:
IOException
-