Package com.sun.faces.application
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 Summary
Fields Modifier and Type Field Description static Writer
NOOP_WRITER
-
Fields inherited from class java.io.PrintWriter
out
-
-
Constructor Summary
Constructors Constructor Description WebPrintWriter(Writer delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
flush()
boolean
isComitted()
-
Methods inherited from class java.io.PrintWriter
append, append, append, checkError, clearError, format, format, print, print, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, println, println, println, setError, write, write, write, write, write
-
Methods inherited from class java.io.Writer
nullWriter
-
-
-
-
Field Detail
-
NOOP_WRITER
public static final Writer NOOP_WRITER
-
-
Constructor Detail
-
WebPrintWriter
public WebPrintWriter(Writer delegate)
-
-
Method Detail
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classPrintWriter
-
flush
public void flush()
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classPrintWriter
-
isComitted
public boolean isComitted()
-
-