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
 
 public class HtmlResponseWriterImpl extends ResponseWriter 
- 
- 
Constructor SummaryConstructors Constructor Description HtmlResponseWriterImpl(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 SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ResponseWritercloneWithWriter(Writer writer)voidclose()voidendCDATA()voidendDocument()voidendElement(String name)voidflush()protected voidforceFlush()StringgetCharacterEncoding()StringgetContentType()protected FacesContextgetFacesContext()protected StreamCharBuffergetInternalBuffer()protected StreamCharBuffergetInternalBuffer(boolean reset)protected booleangetWrapScriptContentWithXmlCommentTag()StringgetWriterContentTypeMode()voidstartCDATA()voidstartDocument()voidstartElement(String name, UIComponent uiComponent)static booleansupportsContentType(String contentType)voidwrite(char[] cbuf)voidwrite(char[] cbuf, int off, int len)voidwrite(int c)voidwrite(String str)voidwrite(String str, int off, int len)voidwriteAttribute(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)voidwriteText(Object value, String componentPropertyName)voidwriteURIAttribute(String name, Object value, String componentPropertyName)- 
Methods inherited from class jakarta.faces.context.ResponseWriterwriteDoctype, writePreamble
 - 
Methods inherited from class java.io.Writerappend, append, append, nullWriter
 
- 
 
- 
- 
- 
Constructor Detail- 
HtmlResponseWriterImplpublic HtmlResponseWriterImpl(Writer writer, String contentType, String characterEncoding) 
 - 
HtmlResponseWriterImplpublic HtmlResponseWriterImpl(Writer writer, String contentType, String characterEncoding, boolean wrapScriptContentWithXmlCommentTag) 
 - 
HtmlResponseWriterImplpublic HtmlResponseWriterImpl(Writer writer, String contentType, String characterEncoding, boolean wrapScriptContentWithXmlCommentTag, String writerContentTypeMode) throws FacesException - Throws:
- FacesException
 
 
- 
 - 
Method Detail- 
supportsContentTypepublic static boolean supportsContentType(String contentType) 
 - 
getContentTypepublic String getContentType() - Specified by:
- getContentTypein class- ResponseWriter
 
 - 
getWriterContentTypeModepublic String getWriterContentTypeMode() 
 - 
getCharacterEncodingpublic String getCharacterEncoding() - Specified by:
- getCharacterEncodingin class- ResponseWriter
 
 - 
flushpublic void flush() throws IOException- Specified by:
- flushin interface- Flushable
- Specified by:
- flushin class- ResponseWriter
- Throws:
- IOException
 
 - 
startDocumentpublic void startDocument() - Specified by:
- startDocumentin class- ResponseWriter
 
 - 
endDocumentpublic void endDocument() throws IOException- Specified by:
- endDocumentin class- ResponseWriter
- Throws:
- IOException
 
 - 
startElementpublic void startElement(String name, UIComponent uiComponent) throws IOException - Specified by:
- startElementin class- ResponseWriter
- Throws:
- IOException
 
 - 
startCDATApublic void startCDATA() throws IOException- Overrides:
- startCDATAin class- ResponseWriter
- Throws:
- IOException
 
 - 
endCDATApublic void endCDATA() throws IOException- Overrides:
- endCDATAin class- ResponseWriter
- Throws:
- IOException
 
 - 
endElementpublic void endElement(String name) throws IOException - 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
 
 - 
writeCommentpublic void writeComment(Object value) throws IOException - Specified by:
- writeCommentin class- ResponseWriter
- Throws:
- IOException
 
 - 
writeTextpublic void writeText(Object value, String componentPropertyName) throws IOException - Specified by:
- writeTextin class- ResponseWriter
- Throws:
- IOException
 
 - 
writeTextpublic void writeText(char[] cbuf, int off, int len) throws IOException- Specified by:
- writeTextin class- ResponseWriter
- Throws:
- IOException
 
 - 
cloneWithWriterpublic ResponseWriter cloneWithWriter(Writer writer) - Specified by:
- cloneWithWriterin class- ResponseWriter
 
 - 
closepublic void close() throws IOException- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
- Specified by:
- closein class- Writer
- Throws:
- IOException
 
 - 
writepublic void write(char[] cbuf, int off, int len) throws IOException- Specified by:
- writein class- Writer
- Throws:
- IOException
 
 - 
writepublic void write(int c) throws IOException- Overrides:
- writein class- Writer
- Throws:
- IOException
 
 - 
writepublic void write(char[] cbuf) throws IOException- Overrides:
- writein class- Writer
- Throws:
- IOException
 
 - 
writepublic void write(String str) throws IOException - Overrides:
- writein class- Writer
- Throws:
- IOException
 
 - 
writepublic void write(String str, int off, int len) throws IOException - Overrides:
- writein class- Writer
- Throws:
- IOException
 
 - 
writeTextpublic void writeText(Object object, UIComponent component, String string) throws IOException This method ignores theUIComponentprovided and simply callswriteText(Object,String)- Overrides:
- writeTextin class- ResponseWriter
- Throws:
- IOException
- Since:
- 1.2
 
 - 
getInternalBufferprotected StreamCharBuffer getInternalBuffer() 
 - 
getInternalBufferprotected StreamCharBuffer getInternalBuffer(boolean reset) 
 - 
getFacesContextprotected FacesContext getFacesContext() 
 - 
getWrapScriptContentWithXmlCommentTagprotected boolean getWrapScriptContentWithXmlCommentTag() 
 - 
forceFlushprotected void forceFlush() throws IOException- Throws:
- IOException
 
 
- 
 
-