java.lang.Object
java.io.Writer
com.aoapps.lang.io.NullWriter
- All Implemented Interfaces:
NoClose
,Closeable
,Flushable
,Appendable
,AutoCloseable
Discards all data.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionappend
(char c) append
(CharSequence csq) append
(CharSequence csq, int start, int end) void
close()
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.void
flush()
static NullWriter
void
write
(char[] cbuf) void
write
(char[] cbuf, int off, int len) void
write
(int c) void
void
Methods 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:
append
in interfaceAppendable
- Overrides:
append
in classWriter
-
append
- Specified by:
append
in interfaceAppendable
- Overrides:
append
in classWriter
-
append
- Specified by:
append
in interfaceAppendable
- Overrides:
append
in classWriter
-
flush
public void flush() -
close
public void close()Description copied from interface:NoClose
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.
-