Package org.codehaus.groovy.control.io
Class NullWriter
java.lang.Object
java.io.Writer
org.codehaus.groovy.control.io.NullWriter
- All Implemented Interfaces:
- java.io.Closeable,- java.io.Flushable,- java.lang.Appendable,- java.lang.AutoCloseable
public class NullWriter
extends java.io.Writer
An Writer than eats its input.
- 
Field SummaryFields Modifier and Type Field Description static NullWriterDEFAULTFields inherited from class java.io.Writerlock
- 
Constructor SummaryConstructors Constructor Description NullWriter()
- 
Method SummaryMethods inherited from class java.io.Writerappend, append, append, nullWriter, write, write, write, writeMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
- 
Field Details- 
DEFAULT
 
- 
- 
Constructor Details- 
NullWriterpublic NullWriter()
 
- 
- 
Method Details- 
closepublic void close()- Specified by:
- closein interface- java.lang.AutoCloseable
- Specified by:
- closein interface- java.io.Closeable
- Specified by:
- closein class- java.io.Writer
 
- 
flushpublic void flush()- Specified by:
- flushin interface- java.io.Flushable
- Specified by:
- flushin class- java.io.Writer
 
- 
writepublic void write(char[] cbuf, int off, int len)- Specified by:
- writein class- java.io.Writer
 
 
-