Class FilterPrintWriter

java.lang.Object
java.io.Writer
java.io.PrintWriter
org.apache.axis.transport.http.FilterPrintWriter
All Implemented Interfaces:
Closeable, Flushable, Appendable, AutoCloseable

public class FilterPrintWriter extends PrintWriter
simple wrapper around PrintWriter class. It creates the PrintWriter object on demand, thus allowing to have a ResponseWriter class for structural reasons, while actually creating the writer on demand. This solves the problem of having to have a PrintWriter object available and being forced to set the contentType of the response object after creation.
Author:
Davanum Srinivas (dims@yahoo.com)