Package de.uplanet.io
Class AbstractDelegatingPrintWriter<T extends PrintWriter>
java.lang.Object
java.io.Writer
java.io.PrintWriter
de.uplanet.io.AbstractDelegatingPrintWriter<T>
- All Implemented Interfaces:
Closeable
,Flushable
,Appendable
,AutoCloseable
- Direct Known Subclasses:
GroovyHttpServletResponseWriter
Base class for delegating
PrintWriter
s. The type parameter should
be set to the derived class when deriving a class.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionappend
(char p_ch) append
(CharSequence p_chseq) append
(CharSequence p_chseq, int p_iStart, int p_iEnd) boolean
void
close()
void
flush()
boolean
Check if data haven been written.void
print
(boolean p_bVal) void
print
(char p_ch) void
print
(char[] p_chars) void
print
(double p_dVal) void
print
(float p_fVal) void
print
(int p_iVal) void
print
(long p_lVal) void
void
void
println()
void
println
(boolean p_bVal) void
println
(char p_ch) void
println
(char[] p_chars) void
println
(double p_dVal) void
println
(float p_fVal) void
println
(int p_iVal) void
println
(long p_lVal) void
void
void
write
(char[] p_buf) void
write
(char[] p_buf, int p_iOffs, int p_iLen) void
write
(int p_iChar) void
void
Methods inherited from class java.io.Writer
nullWriter
-
Constructor Details
-
AbstractDelegatingPrintWriter
public AbstractDelegatingPrintWriter()
-
-
Method Details
-
isWritten
public boolean isWritten()Check if data haven been written.- Returns:
true
if data have been written, orfalse
otherwise.
-
flush
public void flush()- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classPrintWriter
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classPrintWriter
-
checkError
public boolean checkError()- Overrides:
checkError
in classPrintWriter
-
write
public void write(int p_iChar) - Overrides:
write
in classPrintWriter
-
write
public void write(char[] p_buf, int p_iOffs, int p_iLen) - Overrides:
write
in classPrintWriter
-
write
public void write(char[] p_buf) - Overrides:
write
in classPrintWriter
-
write
- Overrides:
write
in classPrintWriter
-
write
- Overrides:
write
in classPrintWriter
-
print
public void print(boolean p_bVal) - Overrides:
print
in classPrintWriter
-
print
public void print(char p_ch) - Overrides:
print
in classPrintWriter
-
print
public void print(int p_iVal) - Overrides:
print
in classPrintWriter
-
print
public void print(long p_lVal) - Overrides:
print
in classPrintWriter
-
print
public void print(float p_fVal) - Overrides:
print
in classPrintWriter
-
print
public void print(double p_dVal) - Overrides:
print
in classPrintWriter
-
print
public void print(char[] p_chars) - 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 p_bVal) - Overrides:
println
in classPrintWriter
-
println
public void println(char p_ch) - Overrides:
println
in classPrintWriter
-
println
public void println(int p_iVal) - Overrides:
println
in classPrintWriter
-
println
public void println(long p_lVal) - Overrides:
println
in classPrintWriter
-
println
public void println(float p_fVal) - Overrides:
println
in classPrintWriter
-
println
public void println(double p_dVal) - Overrides:
println
in classPrintWriter
-
println
public void println(char[] p_chars) - 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
-
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
-