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.WriterAn Writer than eats its input. 
- 
- 
Field Summary
Fields Modifier and Type Field Description static NullWriterDEFAULT 
- 
Constructor Summary
Constructors Constructor Description NullWriter() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidflush()voidwrite(char[] cbuf, int off, int len) 
 - 
 
- 
- 
Field Detail
- 
DEFAULT
public static final NullWriter DEFAULT
 
 - 
 
- 
Method Detail
- 
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
 
 - 
 
 -