Package net.loomchild.segment.util
Class NullWriter
java.lang.Object
java.io.Writer
net.loomchild.segment.util.NullWriter
- All Implemented Interfaces:
Closeable
,Flushable
,Appendable
,AutoCloseable
Writer that does not write anywhere. Idea is similar to /dev/null.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
NullWriter
public NullWriter()
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classWriter
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Specified by:
flush
in classWriter
- Throws:
IOException
-
write
- Specified by:
write
in classWriter
- Throws:
IOException
-