Class ZipUtils.ClosingInputStream
java.lang.Object
java.io.InputStream
de.iip_ecosphere.platform.support.DelegatingInputStream
de.iip_ecosphere.platform.support.ZipUtils.ClosingInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
- Enclosing class:
ZipUtils
A delegating input stream that closes a given closable after closing this stream. Typically, the closeable
is some parent stream.
- Author:
- Holger Eichelberger, SSE
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionClosingInputStream(InputStream delegate, Closeable closeable) Creates an instance. -
Method Summary
Methods inherited from class de.iip_ecosphere.platform.support.DelegatingInputStream
available, getDelegate, mark, markSupported, read, read, read, reset, skipMethods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Field Details
-
closeable
-
-
Constructor Details
-
ClosingInputStream
Creates an instance. 0- Parameters:
delegate- the instance to delegate the operations tocloseable- the closable to close after this stream
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classDelegatingInputStream- Throws:
IOException
-