Class EarlyFlushHtmlResponseWriterImpl
java.lang.Object
java.io.Writer
jakarta.faces.context.ResponseWriter
org.apache.myfaces.renderkit.html.HtmlResponseWriterImpl
org.apache.myfaces.renderkit.html.EarlyFlushHtmlResponseWriterImpl
- All Implemented Interfaces:
- Closeable,- Flushable,- Appendable,- AutoCloseable
This implementation is just the default html response writer with the early flush logic. The
 idea is detect when the end "head" element is rendered and in that moment, when the flush call
 is done, force the flush of the current underlying writer.
- Author:
- Leonardo Uribe
- 
Field Summary
- 
Constructor SummaryConstructorsConstructorDescriptionEarlyFlushHtmlResponseWriterImpl(Writer writer, String contentType, String characterEncoding) EarlyFlushHtmlResponseWriterImpl(Writer writer, String contentType, String characterEncoding, boolean wrapScriptContentWithXmlCommentTag) EarlyFlushHtmlResponseWriterImpl(Writer writer, String contentType, String characterEncoding, boolean wrapScriptContentWithXmlCommentTag, String writerContentTypeMode) 
- 
Method SummaryModifier and TypeMethodDescriptioncloneWithWriter(Writer writer) voidendElement(String name) voidflush()voidstartElement(String name, UIComponent uiComponent) Methods inherited from class org.apache.myfaces.renderkit.html.HtmlResponseWriterImplclose, endCDATA, endDocument, forceFlush, getCharacterEncoding, getContentType, getFacesContext, getInternalBuffer, getInternalBuffer, getWrapScriptContentWithXmlCommentTag, getWriterContentTypeMode, startCDATA, startDocument, supportsContentType, write, write, write, write, write, writeAttribute, writeComment, writeText, writeText, writeText, writeURIAttributeMethods inherited from class jakarta.faces.context.ResponseWriterwriteDoctype, writePreambleMethods inherited from class java.io.Writerappend, append, append, nullWriter
- 
Constructor Details- 
EarlyFlushHtmlResponseWriterImpl
- 
EarlyFlushHtmlResponseWriterImpl
- 
EarlyFlushHtmlResponseWriterImplpublic EarlyFlushHtmlResponseWriterImpl(Writer writer, String contentType, String characterEncoding, boolean wrapScriptContentWithXmlCommentTag, String writerContentTypeMode) throws FacesException - Throws:
- FacesException
 
 
- 
- 
Method Details- 
cloneWithWriter- Overrides:
- cloneWithWriterin class- HtmlResponseWriterImpl
 
- 
startElement- Overrides:
- startElementin class- HtmlResponseWriterImpl
- Throws:
- IOException
 
- 
endElement- Overrides:
- endElementin class- HtmlResponseWriterImpl
- Throws:
- IOException
 
- 
flush- Specified by:
- flushin interface- Flushable
- Overrides:
- flushin class- HtmlResponseWriterImpl
- Throws:
- IOException
 
 
-