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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.commons.io.input.ProxyInputStream
org.apache.commons.io.input.ProxyInputStream.AbstractBuilder<T extends Object,B extends org.apache.commons.io.build.AbstractStreamBuilder<T,B>>
-
-
Field Summary
Fields Modifier and Type Field Description protected List<Closeable>
closeables
-
Fields inherited from class java.io.FilterInputStream
in
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ZipEntryInputStream(InputStream in, List<Closeable> closeables)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
protected static void
close(List<Closeable> closeables)
static ZipEntryBlob.ZipEntryInputStream
of(Blob zipBlob, String entryName)
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, unwrap
-
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
-
-
-
-
Constructor Detail
-
ZipEntryInputStream
protected ZipEntryInputStream(InputStream in, List<Closeable> closeables)
-
-
Method Detail
-
of
public static ZipEntryBlob.ZipEntryInputStream of(Blob zipBlob, String entryName) throws IOException
Factory for aZipEntryBlob.ZipEntryInputStream
.- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classorg.apache.commons.io.input.ProxyInputStream
- Throws:
IOException
-
close
protected static void close(List<Closeable> closeables) throws IOException
- Throws:
IOException
-
-