java.lang.Object
java.io.Writer
java.io.PrintWriter
com.aoapps.servlet.filter.TrimFilterWriter
- All Implemented Interfaces:
Closeable
,Flushable
,Appendable
,AutoCloseable
Filters the output and removes extra white space at the beginning of lines and completely removes blank lines.
TEXTAREAs are automatically detected as long as they start with exact "<textarea" and end with exactly "</textarea" (case insensitive).
The reason for the specific tag format is to simplify the implementation
for maximum performance. Careful attention has been paid to minimize the internal buffering in this class.
- Author:
- AO Industries, Inc.
-
Field Summary
Fields inherited from class java.io.PrintWriter
out
-
Constructor Summary
ConstructorDescriptionTrimFilterWriter
(Writer out, ServletResponse response) Creates a newTrimFilterWriter
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
print
(boolean b) void
print
(char c) void
print
(double d) void
print
(float f) void
print
(int i) void
print
(long l) void
println()
void
println
(boolean b) void
println
(char x) void
println
(char[] x) void
println
(double d) void
println
(float f) void
println
(int i) void
println
(long l) void
void
void
write
(char[] buf) void
write
(char[] buf, int off, int len) void
write
(int c) void
Methods inherited from class java.io.PrintWriter
append, append, append, checkError, clearError, flush, print, print, print, printf, printf, setError, write
Methods inherited from class java.io.Writer
nullWriter
-
Constructor Details
-
TrimFilterWriter
Creates a newTrimFilterWriter
.
-
-
Method Details
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classPrintWriter
-
write
public void write(int c) - Overrides:
write
in classPrintWriter
-
write
public void write(char[] buf, int off, int len) - Overrides:
write
in classPrintWriter
-
write
public void write(char[] buf) - Overrides:
write
in classPrintWriter
-
write
- Overrides:
write
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
-
println
public void println()- Overrides:
println
in classPrintWriter
-
println
public void println(boolean b) - Overrides:
println
in classPrintWriter
-
println
public void println(char x) - Overrides:
println
in classPrintWriter
-
println
public void println(int i) - Overrides:
println
in classPrintWriter
-
println
public void println(long l) - Overrides:
println
in classPrintWriter
-
println
public void println(float f) - Overrides:
println
in classPrintWriter
-
println
public void println(double d) - Overrides:
println
in classPrintWriter
-
println
public void println(char[] x) - Overrides:
println
in classPrintWriter
-
println
- Overrides:
println
in classPrintWriter
-
println
- Overrides:
println
in classPrintWriter
-
format
- Overrides:
format
in classPrintWriter
-
format
- Overrides:
format
in classPrintWriter
-