java.lang.Object
java.io.Writer
java.io.PrintWriter
com.aoapps.lang.io.NullPrintWriter
- All Implemented Interfaces:
NoClose
,Closeable
,Flushable
,Appendable
,AutoCloseable
Discards all data.
-
Field Summary
Fields inherited from class java.io.PrintWriter
out
-
Method Summary
Modifier and TypeMethodDescriptionappend
(char c) append
(CharSequence csq) append
(CharSequence csq, int start, int end) boolean
protected void
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 NullPrintWriter
void
print
(boolean b) void
print
(char c) void
print
(char[] s) void
print
(double d) void
print
(float f) void
print
(int i) void
print
(long l) void
void
void
println()
void
println
(boolean x) void
println
(char x) void
println
(char[] x) void
println
(double x) void
println
(float x) void
println
(int x) void
println
(long x) void
void
protected void
setError()
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) - Overrides:
write
in classPrintWriter
-
write
public void write(char[] cbuf) - Overrides:
write
in classPrintWriter
-
write
public void write(char[] cbuf, int off, int len) - Overrides:
write
in classPrintWriter
-
write
- Overrides:
write
in classPrintWriter
-
write
- Overrides:
write
in classPrintWriter
-
append
- Specified by:
append
in interfaceAppendable
- Overrides:
append
in classPrintWriter
-
append
- Specified by:
append
in interfaceAppendable
- Overrides:
append
in classPrintWriter
-
append
- Specified by:
append
in interfaceAppendable
- Overrides:
append
in classPrintWriter
-
flush
public void flush()- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classPrintWriter
-
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.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceNoClose
- Overrides:
close
in classPrintWriter
-
checkError
public boolean checkError()- Overrides:
checkError
in classPrintWriter
-
setError
protected void setError()- Overrides:
setError
in classPrintWriter
-
clearError
protected void clearError()- Overrides:
clearError
in classPrintWriter
-
print
public void print(boolean b) - Overrides:
print
in classPrintWriter
-
print
public void print(char c) - Overrides:
print
in classPrintWriter
-
print
public void print(int i) - Overrides:
print
in classPrintWriter
-
print
public void print(long l) - Overrides:
print
in classPrintWriter
-
print
public void print(float f) - Overrides:
print
in classPrintWriter
-
print
public void print(double d) - Overrides:
print
in classPrintWriter
-
print
public void print(char[] s) - Overrides:
print
in classPrintWriter
-
print
- Overrides:
print
in classPrintWriter
-
print
- Overrides:
print
in classPrintWriter
-
println
public void println()- Overrides:
println
in classPrintWriter
-
println
public void println(boolean x) - Overrides:
println
in classPrintWriter
-
println
public void println(char x) - Overrides:
println
in classPrintWriter
-
println
public void println(int x) - Overrides:
println
in classPrintWriter
-
println
public void println(long x) - Overrides:
println
in classPrintWriter
-
println
public void println(float x) - Overrides:
println
in classPrintWriter
-
println
public void println(double x) - Overrides:
println
in classPrintWriter
-
println
public void println(char[] x) - Overrides:
println
in classPrintWriter
-
println
- Overrides:
println
in classPrintWriter
-
println
- Overrides:
println
in classPrintWriter
-
printf
- Overrides:
printf
in classPrintWriter
-
printf
- Overrides:
printf
in classPrintWriter
-
format
- Overrides:
format
in classPrintWriter
-
format
- Overrides:
format
in classPrintWriter
-