Package com.helger.commons.io.stream
Class NonClosingInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- com.helger.commons.io.stream.WrappedInputStream
-
- com.helger.commons.io.stream.NonClosingInputStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class NonClosingInputStream extends WrappedInputStream
A specialInputStreamthat does not close the stream. This is e.g. helpful for reading from streams within a ZIP file.- Author:
- Philip Helger
-
-
Field Summary
-
Fields inherited from class java.io.FilterInputStream
in
-
-
Constructor Summary
Constructors Constructor Description NonClosingInputStream(InputStream aSourceIS)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()-
Methods inherited from class com.helger.commons.io.stream.WrappedInputStream
getWrappedInputStream, toString
-
Methods inherited from class java.io.FilterInputStream
available, mark, markSupported, read, read, read, reset, skip
-
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
-
-
-
-
Constructor Detail
-
NonClosingInputStream
public NonClosingInputStream(@Nonnull InputStream aSourceIS)
-
-
Method Detail
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classFilterInputStream
-
-