java.lang.Object
java.io.Writer
com.aoapps.lang.io.NullWriter
- All Implemented Interfaces:
NoClose,Closeable,Flushable,Appendable,AutoCloseable
Discards all data.
Please consider Writer.nullWriter(), which more thoroughly enforces the contract of Writer.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionappend(char c) append(CharSequence csq) append(CharSequence csq, int start, int end) voidclose()Calls to close are ignored whenNoClose.isNoClose(), otherwise some action might be taken which means close calls to this object may not be skipped or assumed to be ignored.voidflush()static NullWritervoidwrite(char[] cbuf) voidwrite(char[] cbuf, int off, int len) voidwrite(int c) voidvoidMethods inherited from class java.io.Writer
nullWriter
-
Method Details
-
getInstance
-
write
public void write(int c) -
write
public void write(char[] cbuf) -
write
public void write(char[] cbuf, int off, int len) -
write
-
write
-
append
- Specified by:
appendin interfaceAppendable- Overrides:
appendin classWriter
-
append
- Specified by:
appendin interfaceAppendable- Overrides:
appendin classWriter
-
append
- Specified by:
appendin interfaceAppendable- Overrides:
appendin classWriter
-
flush
public void flush() -
close
public void close()Description copied from interface:NoCloseCalls to close are ignored whenNoClose.isNoClose(), otherwise some action might be taken which means close calls to this object may not be skipped or assumed to be ignored.
-
