Package com.wavemaker.commons.io
Class NoCloseInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- com.wavemaker.commons.io.NoCloseInputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class NoCloseInputStream extends java.io.FilterInputStreamInputStreamthat does not perform any operation whenclose()is called.
-
-
Constructor Summary
Constructors Constructor Description NoCloseInputStream(java.io.InputStream in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Intentionally ignoring the implementation to avoid closing the enclosing stream in such cases like iterating through zip entries...voiddoClose()-
Methods inherited from class java.io.FilterInputStream
available, mark, markSupported, read, read, read, reset, skip
-
-
-
-
Method Detail
-
close
public void close() throws java.io.IOExceptionIntentionally ignoring the implementation to avoid closing the enclosing stream in such cases like iterating through zip entries... etc- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.FilterInputStream- Throws:
java.io.IOException
-
doClose
public void doClose() throws java.io.IOException- Throws:
java.io.IOException
-
-