Package org.zkoss.io
Class NullWriter
java.lang.Object
java.io.Writer
org.zkoss.io.NullWriter
- All Implemented Interfaces:
Closeable,Flushable,Appendable,AutoCloseable
A writer that drops all output. It behaves like Unix /dev/null.
- Author:
- tomyeh
-
Constructor Details
-
NullWriter
public NullWriter()
-
-
Method Details
-
write
- Specified by:
writein classWriter- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Specified by:
flushin classWriter- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classWriter- Throws:
IOException
-