Class WebPrintWriter

java.lang.Object
java.io.Writer
java.io.PrintWriter
com.sun.faces.application.WebPrintWriter
All Implemented Interfaces:
Closeable, Flushable, Appendable, AutoCloseable

public class WebPrintWriter extends PrintWriter
A simple PrintWriter implementation to allow us to query whether or not the writer has been flushed or closed. This is necessary to better mimic the actual Servlet response.
  • Field Details

    • NOOP_WRITER

      public static final Writer NOOP_WRITER
  • Constructor Details

    • WebPrintWriter

      public WebPrintWriter(Writer delegate)
  • Method Details