Class NonAutoCloseableWriter
java.lang.Object
java.io.Writer
ru.progrm_jarvis.javacommons.io.wrapper.NonAutoCloseableWriter
- All Implemented Interfaces:
Closeable,Flushable,Appendable,AutoCloseable,NonAutoCloseable
A
NonAutoCloseable wrapper for Writer.-
Field Summary
-
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().
-
Constructor Details
-
NonAutoCloseableWriter
public NonAutoCloseableWriter()
-
-
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- Specified by:
closein classWriter
-
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:
-