java.lang.Object
java.io.Writer
java.io.PrintWriter
com.sun.faces.application.WebPrintWriter
- All Implemented Interfaces:
Closeable
,Flushable
,Appendable
,AutoCloseable
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 inherited from class java.io.PrintWriter
out
-
Constructor Summary
-
Method Summary
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 Details
-
NOOP_WRITER
-
-
Constructor Details
-
WebPrintWriter
-
-
Method Details
-
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()
-