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 Summary
ConstructorsConstructorDescriptionHtmlResponseWriterImpl(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 Summary
Modifier 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.ResponseWriter
writeDoctype, writePreambleMethods inherited from class java.io.Writer
append, append, append, nullWriter
-
Constructor Details
-
HtmlResponseWriterImpl
-
HtmlResponseWriterImpl
-
HtmlResponseWriterImpl
public HtmlResponseWriterImpl(Writer writer, String contentType, String characterEncoding, boolean wrapScriptContentWithXmlCommentTag, String writerContentTypeMode) throws FacesException - Throws:
FacesException
-
-
Method Details
-
supportsContentType
-
getContentType
- Specified by:
getContentTypein classResponseWriter
-
getWriterContentTypeMode
-
getCharacterEncoding
- Specified by:
getCharacterEncodingin classResponseWriter
-
flush
- Specified by:
flushin interfaceFlushable- Specified by:
flushin classResponseWriter- Throws:
IOException
-
startDocument
public void startDocument()- Specified by:
startDocumentin classResponseWriter
-
endDocument
- Specified by:
endDocumentin classResponseWriter- Throws:
IOException
-
startElement
- Specified by:
startElementin classResponseWriter- Throws:
IOException
-
startCDATA
- Overrides:
startCDATAin classResponseWriter- Throws:
IOException
-
endCDATA
- Overrides:
endCDATAin classResponseWriter- Throws:
IOException
-
endElement
- Specified by:
endElementin classResponseWriter- Throws:
IOException
-
writeAttribute
public void writeAttribute(String name, Object value, String componentPropertyName) throws IOException - Specified by:
writeAttributein classResponseWriter- Throws:
IOException
-
writeURIAttribute
public void writeURIAttribute(String name, Object value, String componentPropertyName) throws IOException - Specified by:
writeURIAttributein classResponseWriter- Throws:
IOException
-
writeComment
- Specified by:
writeCommentin classResponseWriter- Throws:
IOException
-
writeText
- Specified by:
writeTextin classResponseWriter- Throws:
IOException
-
writeText
- Specified by:
writeTextin classResponseWriter- Throws:
IOException
-
cloneWithWriter
- Specified by:
cloneWithWriterin classResponseWriter
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classWriter- Throws:
IOException
-
write
- Specified by:
writein classWriter- Throws:
IOException
-
write
- Overrides:
writein classWriter- Throws:
IOException
-
write
- Overrides:
writein classWriter- Throws:
IOException
-
write
- Overrides:
writein classWriter- Throws:
IOException
-
write
- Overrides:
writein classWriter- Throws:
IOException
-
writeText
This method ignores theUIComponentprovided and simply callswriteText(Object,String)- Overrides:
writeTextin classResponseWriter- Throws:
IOException- Since:
- 1.2
-
getInternalBuffer
-
getInternalBuffer
-
getFacesContext
-
getWrapScriptContentWithXmlCommentTag
protected boolean getWrapScriptContentWithXmlCommentTag() -
forceFlush
- Throws:
IOException
-