Class NonAutoCloseableInputStream
java.lang.Object
java.io.InputStream
ru.progrm_jarvis.javacommons.io.wrapper.NonAutoCloseableInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable,NonAutoCloseable
A
NonAutoCloseable wrapper for InputStream.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Imitates closing this object not actually doing it.abstract voiddoClose()Actually closes this object as if it was done by callingAutoCloseable.close().Methods inherited from class java.io.InputStream
available, mark, markSupported, read, read, read, reset, skip
-
Constructor Details
-
NonAutoCloseableInputStream
public NonAutoCloseableInputStream()
-
-
Method Details
-
close
public void close()Description copied from interface:NonAutoCloseableImitates closing this object not actually doing it.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceNonAutoCloseable- Overrides:
closein classInputStream
-
doClose
Description copied from interface:NonAutoCloseableActually closes this object as if it was done by callingAutoCloseable.close().- Specified by:
doClosein interfaceNonAutoCloseable- Throws:
IOException- See Also:
-