Package org.smooks.io
Class NullWriter
- java.lang.Object
-
- java.io.Writer
-
- org.smooks.io.NullWriter
-
- All Implemented Interfaces:
Closeable
,Flushable
,Appendable
,AutoCloseable
public class NullWriter extends Writer
Null writer implementation. Data writen to this writer is swallowed (ala piping output to /dev/null).- Author:
- tom.fennelly@gmail.com
-
-
Constructor Summary
Constructors Constructor Description NullWriter()
NullWriter(Writer parentWriter)
NullWriter(Object lock)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Writer
append(char c)
Writer
append(CharSequence csq)
Writer
append(CharSequence csq, int start, int end)
void
close()
void
flush()
Writer
getParentWriter()
void
write(char[] cbuf)
void
write(char[] cbuf, int off, int len)
void
write(int c)
void
write(String str)
void
write(String str, int off, int len)
-
-
-
Method Detail
-
getParentWriter
public Writer getParentWriter()
-
append
public Writer append(CharSequence csq)
- Specified by:
append
in interfaceAppendable
- Overrides:
append
in classWriter
-
append
public Writer append(CharSequence csq, int start, int end)
- Specified by:
append
in interfaceAppendable
- Overrides:
append
in classWriter
-
append
public Writer append(char c)
- Specified by:
append
in interfaceAppendable
- Overrides:
append
in classWriter
-
flush
public void flush()
-
-