- java.lang.Object
-
- java.io.Writer
-
- java.io.FilterWriter
-
- com.aoapps.lang.io.NoCloseWriter
-
- All Implemented Interfaces:
Closeable,Flushable,Appendable,AutoCloseable
public class NoCloseWriter extends FilterWriter
Overridesclose()to a no-op.
-
-
Field Summary
-
Fields inherited from class java.io.FilterWriter
out
-
-
Constructor Summary
Constructors Constructor Description NoCloseWriter(Writer out)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Does not close the wrapped writer.-
Methods inherited from class java.io.FilterWriter
flush, write, write, write
-
-
-
-
Constructor Detail
-
NoCloseWriter
public NoCloseWriter(Writer out)
-
-
Method Detail
-
close
public void close() throws IOExceptionDoes not close the wrapped writer.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classFilterWriter- Throws:
IOException
-
-