Class HtmlResponseWriter
- java.lang.Object
-
- java.io.Writer
-
- javax.faces.context.ResponseWriter
-
- org.apache.myfaces.tobago.webapp.TobagoResponseWriter
-
- org.apache.myfaces.tobago.internal.webapp.TobagoResponseWriterBase
-
- org.apache.myfaces.tobago.internal.webapp.HtmlResponseWriter
-
- All Implemented Interfaces:
Closeable
,Flushable
,Appendable
,AutoCloseable
public class HtmlResponseWriter extends TobagoResponseWriterBase
-
-
Field Summary
-
Fields inherited from class org.apache.myfaces.tobago.internal.webapp.TobagoResponseWriterBase
XML_VERSION_1_0_ENCODING_UTF_8, XML_VERSION_1_0_ENCODING_UTF_8_CHARS
-
-
Constructor Summary
Constructors Constructor Description HtmlResponseWriter(Writer writer, String contentType, String characterEncoding)
Deprecated.since 4.3.0HtmlResponseWriter(Writer writer, String contentType, Charset charset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.faces.context.ResponseWriter
cloneWithWriter(Writer originalWriter)
protected void
closeEmptyTag()
void
endDocument()
void
endElement(String name)
WriterHelper
getHelper()
void
startDocument()
void
write(char[] cbuf, int off, int len)
void
write(String string)
protected void
writerAttributeValue(String value, boolean escape)
void
writeText(char[] text, int offset, int length)
void
writeText(Object text, String property)
-
Methods inherited from class org.apache.myfaces.tobago.internal.webapp.TobagoResponseWriterBase
close, closeOpenTag, endElement, endElementInternal, findValue, flush, getCallingClassStackTraceElementString, getCharacterEncoding, getComponent, getContentType, getWriter, handlePassThroughAttributes, isStartStillOpen, setComponent, setStartStillOpen, startElement, startElement, startElement, startElementInternal, write, write, write, writeAttribute, writeAttribute, writeAttribute, writeAttributeInternal, writeComment, writeInternal, writeURIAttribute, writeURIAttribute
-
Methods inherited from class org.apache.myfaces.tobago.webapp.TobagoResponseWriter
endCDATA, getContentTypeWithCharSet, startCDATA, writeAttribute, writeAttribute, writeClassAttribute, writeClassAttribute, writeClassAttribute, writeClassAttribute, writeClassAttribute, writeCommandMapAttribute, writeIdAttribute, writeNameAttribute, writeText
-
Methods inherited from class javax.faces.context.ResponseWriter
writeDoctype, writePreamble, writeText
-
Methods inherited from class java.io.Writer
append, append, append, nullWriter
-
-
-
-
Method Detail
-
write
public void write(String string) throws IOException
- Overrides:
write
in classTobagoResponseWriterBase
- Throws:
IOException
-
getHelper
public final WriterHelper getHelper()
-
writeText
public void writeText(Object text, String property) throws IOException
- Specified by:
writeText
in classTobagoResponseWriter
- Throws:
IOException
-
writeText
public void writeText(char[] text, int offset, int length) throws IOException
- Specified by:
writeText
in classjavax.faces.context.ResponseWriter
- Throws:
IOException
-
write
public void write(char[] cbuf, int off, int len) throws IOException
- Overrides:
write
in classTobagoResponseWriterBase
- Throws:
IOException
-
closeEmptyTag
protected void closeEmptyTag() throws IOException
- Specified by:
closeEmptyTag
in classTobagoResponseWriterBase
- Throws:
IOException
-
writerAttributeValue
protected void writerAttributeValue(String value, boolean escape) throws IOException
- Specified by:
writerAttributeValue
in classTobagoResponseWriterBase
- Throws:
IOException
-
cloneWithWriter
public javax.faces.context.ResponseWriter cloneWithWriter(Writer originalWriter)
- Specified by:
cloneWithWriter
in classTobagoResponseWriter
-
startDocument
public void startDocument() throws IOException
- Overrides:
startDocument
in classTobagoResponseWriterBase
- Throws:
IOException
-
endElement
public void endElement(String name) throws IOException
- Overrides:
endElement
in classTobagoResponseWriterBase
- Throws:
IOException
-
endDocument
public void endDocument() throws IOException
- Overrides:
endDocument
in classTobagoResponseWriterBase
- Throws:
IOException
-
-