Class NonAutoCloseableOutputStream
java.lang.Object
java.io.OutputStream
ru.progrm_jarvis.javacommons.io.wrapper.NonAutoCloseableOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable,NonAutoCloseable
A
NonAutoCloseable wrapper for OutputStream.-
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.OutputStream
flush, write, write, write
-
Constructor Details
-
NonAutoCloseableOutputStream
public NonAutoCloseableOutputStream()
-
-
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 classOutputStream
-
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:
-