Class TrimFilterWriter

java.lang.Object
java.io.Writer
java.io.PrintWriter
com.aoapps.servlet.filter.TrimFilterWriter
All Implemented Interfaces:
Closeable, Flushable, Appendable, AutoCloseable

public class TrimFilterWriter extends PrintWriter
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.