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 Summary
Fields Modifier and Type Field Description static NullWriterDEFAULTFields inherited from class java.io.Writer
lock - 
Constructor Summary
Constructors Constructor Description NullWriter() - 
Method Summary
Methods inherited from class java.io.Writer
append, append, append, nullWriter, write, write, write, writeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
- 
Field Details
- 
DEFAULT
 
 - 
 - 
Constructor Details
- 
NullWriter
public NullWriter() 
 - 
 - 
Method Details
- 
close
public void close()- Specified by:
 closein interfacejava.lang.AutoCloseable- Specified by:
 closein interfacejava.io.Closeable- Specified by:
 closein classjava.io.Writer
 - 
flush
public void flush()- Specified by:
 flushin interfacejava.io.Flushable- Specified by:
 flushin classjava.io.Writer
 - 
write
public void write(char[] cbuf, int off, int len)- Specified by:
 writein classjava.io.Writer
 
 -