Module de.cuioss.test.generator
Class NullWriter
java.lang.Object
java.io.Writer
de.cuioss.test.generator.internal.net.java.quickcheck.NullWriter
- All Implemented Interfaces:
Closeable,Flushable,Appendable,AutoCloseable
This
Writer writes all data to the famous /dev/null.
This Writer has no destination (file/socket etc.) and all
characters written to it are ignored and lost.
- Author:
- https://github.com/apache/commons-io/blob/master/src/main/java/org/apache/commons/io/output/NullWriter.java
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappend(char c) Does nothing - output to/dev/null.append(CharSequence csq) Does nothing - output to/dev/null.append(CharSequence csq, int start, int end) Does nothing - output to/dev/null.voidclose()voidflush()voidwrite(char[] chr) Does nothing - output to/dev/null.voidwrite(char[] chr, int st, int end) Does nothing - output to/dev/null.voidwrite(int idx) Does nothing - output to/dev/null.voidDoes nothing - output to/dev/null.voidDoes nothing - output to/dev/null.Methods inherited from class java.io.Writer
nullWriter
-
Field Details
-
NULL_WRITER
A singleton.
-
-
Constructor Details
-
NullWriter
public NullWriter()Constructs a new NullWriter.
-
-
Method Details
-
append
Does nothing - output to/dev/null.- Specified by:
appendin interfaceAppendable- Overrides:
appendin classWriter- Parameters:
c- The character to write- Returns:
- this writer
-
append
Does nothing - output to/dev/null.- Specified by:
appendin interfaceAppendable- Overrides:
appendin classWriter- Parameters:
csq- The character sequence to writestart- The index of the first character to writeend- The index of the first character to write (exclusive)- Returns:
- this writer
-
append
Does nothing - output to/dev/null.- Specified by:
appendin interfaceAppendable- Overrides:
appendin classWriter- Parameters:
csq- The character sequence to write- Returns:
- this writer
-
write
Does nothing - output to/dev/null. -
write
Does nothing - output to/dev/null. -
write
Does nothing - output to/dev/null. -
write
Does nothing - output to/dev/null. -
write
Does nothing - output to/dev/null. -
flush
-
close
-