public final class NullWriter extends Writer
Writer that simply discards all characters written to it (similar to
/dev/null on Unix systems). Instances of this class are immutable.| Constructor and Description |
|---|
NullWriter() |
| Modifier and Type | Method and Description |
|---|---|
NullWriter |
append(char c) |
NullWriter |
append(CharSequence sequence) |
NullWriter |
append(CharSequence sequence,
int start,
int end) |
void |
close() |
void |
flush() |
void |
write(char[] buf) |
void |
write(char[] buf,
int off,
int len) |
void |
write(int c) |
void |
write(String str) |
void |
write(String str,
int off,
int len) |
public NullWriter append(char c)
append in interface Appendableappend in class Writerpublic NullWriter append(CharSequence sequence)
append in interface Appendableappend in class Writerpublic NullWriter append(CharSequence sequence, int start, int end)
append in interface Appendableappend in class Writerpublic void flush()
Copyright © 2012–2015. All rights reserved.