Class HtmlResponseWriterImpl
java.lang.Object
java.io.Writer
jakarta.faces.context.ResponseWriter
org.apache.myfaces.renderkit.html.HtmlResponseWriterImpl
- All Implemented Interfaces:
- Closeable,- Flushable,- Appendable,- AutoCloseable
- Direct Known Subclasses:
- EarlyFlushHtmlResponseWriterImpl,- HtmlBufferResponseWriterWrapper
- 
Field Summary
- 
Constructor SummaryConstructorsConstructorDescriptionHtmlResponseWriterImpl(Writer writer, String contentType, String characterEncoding) HtmlResponseWriterImpl(Writer writer, String contentType, String characterEncoding, boolean wrapScriptContentWithXmlCommentTag) HtmlResponseWriterImpl(Writer writer, String contentType, String characterEncoding, boolean wrapScriptContentWithXmlCommentTag, String writerContentTypeMode) 
- 
Method SummaryModifier and TypeMethodDescriptioncloneWithWriter(Writer writer) voidclose()voidendCDATA()voidvoidendElement(String name) voidflush()protected voidprotected FacesContextprotected StreamCharBufferprotected StreamCharBuffergetInternalBuffer(boolean reset) protected booleanvoidvoidvoidstartElement(String name, UIComponent uiComponent) static booleansupportsContentType(String contentType) voidwrite(char[] cbuf) voidwrite(char[] cbuf, int off, int len) voidwrite(int c) voidvoidvoidwriteAttribute(String name, Object value, String componentPropertyName) voidwriteComment(Object value) voidwriteText(char[] cbuf, int off, int len) voidwriteText(Object object, UIComponent component, String string) This method ignores theUIComponentprovided and simply callswriteText(Object,String)voidvoidwriteURIAttribute(String name, Object value, String componentPropertyName) Methods inherited from class jakarta.faces.context.ResponseWriterwriteDoctype, writePreambleMethods inherited from class java.io.Writerappend, append, append, nullWriter
- 
Constructor Details- 
HtmlResponseWriterImpl
- 
HtmlResponseWriterImpl
- 
HtmlResponseWriterImplpublic HtmlResponseWriterImpl(Writer writer, String contentType, String characterEncoding, boolean wrapScriptContentWithXmlCommentTag, String writerContentTypeMode) throws FacesException - Throws:
- FacesException
 
 
- 
- 
Method Details- 
supportsContentType
- 
getContentType- Specified by:
- getContentTypein class- ResponseWriter
 
- 
getWriterContentTypeMode
- 
getCharacterEncoding- Specified by:
- getCharacterEncodingin class- ResponseWriter
 
- 
flush- Specified by:
- flushin interface- Flushable
- Specified by:
- flushin class- ResponseWriter
- Throws:
- IOException
 
- 
startDocumentpublic void startDocument()- Specified by:
- startDocumentin class- ResponseWriter
 
- 
endDocument- Specified by:
- endDocumentin class- ResponseWriter
- Throws:
- IOException
 
- 
startElement- Specified by:
- startElementin class- ResponseWriter
- Throws:
- IOException
 
- 
startCDATA- Overrides:
- startCDATAin class- ResponseWriter
- Throws:
- IOException
 
- 
endCDATA- Overrides:
- endCDATAin class- ResponseWriter
- Throws:
- IOException
 
- 
endElement- Specified by:
- endElementin class- ResponseWriter
- Throws:
- IOException
 
- 
writeAttributepublic void writeAttribute(String name, Object value, String componentPropertyName) throws IOException - Specified by:
- writeAttributein class- ResponseWriter
- Throws:
- IOException
 
- 
writeURIAttributepublic void writeURIAttribute(String name, Object value, String componentPropertyName) throws IOException - Specified by:
- writeURIAttributein class- ResponseWriter
- Throws:
- IOException
 
- 
writeComment- Specified by:
- writeCommentin class- ResponseWriter
- Throws:
- IOException
 
- 
writeText- Specified by:
- writeTextin class- ResponseWriter
- Throws:
- IOException
 
- 
writeText- Specified by:
- writeTextin class- ResponseWriter
- Throws:
- IOException
 
- 
cloneWithWriter- Specified by:
- cloneWithWriterin class- ResponseWriter
 
- 
close- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
- Specified by:
- closein class- Writer
- Throws:
- IOException
 
- 
write- Specified by:
- writein class- Writer
- Throws:
- IOException
 
- 
write- Overrides:
- writein class- Writer
- Throws:
- IOException
 
- 
write- Overrides:
- writein class- Writer
- Throws:
- IOException
 
- 
write- Overrides:
- writein class- Writer
- Throws:
- IOException
 
- 
write- Overrides:
- writein class- Writer
- Throws:
- IOException
 
- 
writeTextThis method ignores theUIComponentprovided and simply callswriteText(Object,String)- Overrides:
- writeTextin class- ResponseWriter
- Throws:
- IOException
- Since:
- 1.2
 
- 
getInternalBuffer
- 
getInternalBuffer
- 
getFacesContext
- 
getWrapScriptContentWithXmlCommentTagprotected boolean getWrapScriptContentWithXmlCommentTag()
- 
forceFlush- Throws:
- IOException
 
 
-