org.apache.myfaces.tobago.internal.webapp
Class HtmlResponseWriter

java.lang.Object
  extended by java.io.Writer
      extended by javax.faces.context.ResponseWriter
          extended by org.apache.myfaces.tobago.webapp.TobagoResponseWriter
              extended by org.apache.myfaces.tobago.internal.webapp.TobagoResponseWriterBase
                  extended by org.apache.myfaces.tobago.internal.webapp.HtmlResponseWriter
All Implemented Interfaces:
Closeable, Flushable, Appendable
Direct Known Subclasses:
JsonResponseWriter

public class HtmlResponseWriter
extends TobagoResponseWriterBase


Field Summary
 
Fields inherited from class org.apache.myfaces.tobago.internal.webapp.TobagoResponseWriterBase
EMPTY_TAG, XML_VERSION_1_0_ENCODING_UTF_8, XML_VERSION_1_0_ENCODING_UTF_8_CHARS, XML_VERSION_1_0_ENCODING_UTF_8_LENGTH
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
HtmlResponseWriter(Writer writer, String contentType, String characterEncoding)
           
 
Method Summary
 javax.faces.context.ResponseWriter cloneWithWriter(Writer originalWriter)
           
protected  void closeEmptyTag()
           
 void endDocument()
           
static Style ensureHtmlStyleMap(javax.faces.component.UIComponent component, Style styles)
          Deprecated.  
 WriterUtils getHelper()
           
 void startDocument()
           
 void write(char[] cbuf, int off, int len)
           
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, getStyleClasses, getWriter, isStartStillOpen, setComponent, setStartStillOpen, startElement, startElementInternal, write, write, write, write, writeAttribute, writeAttribute, writeAttributeInternal, writeClassAttribute, writeComment, writeInternal, writeURIAttribute
 
Methods inherited from class org.apache.myfaces.tobago.webapp.TobagoResponseWriter
endJavascript, getContentTypeWithCharSet, startElement, startJavascript, writeAttribute, writeAttribute, writeAttributeFromComponent, writeClassAttribute, writeClassAttribute, writeClassAttribute, writeIdAttribute, writeJavascript, writeNameAttribute, writeStyleAttribute, writeStyleAttribute, writeText, writeTextFromComponent
 
Methods inherited from class javax.faces.context.ResponseWriter
writeText
 
Methods inherited from class java.io.Writer
append, append, append
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlResponseWriter

public HtmlResponseWriter(Writer writer,
                          String contentType,
                          String characterEncoding)
Method Detail

getHelper

public final WriterUtils getHelper()

writeText

public void writeText(Object text,
                      String property)
               throws IOException
Specified by:
writeText in class TobagoResponseWriter
Throws:
IOException

writeText

public void writeText(char[] text,
                      int offset,
                      int length)
               throws IOException
Specified by:
writeText in class javax.faces.context.ResponseWriter
Throws:
IOException

write

public void write(char[] cbuf,
                  int off,
                  int len)
           throws IOException
Overrides:
write in class TobagoResponseWriterBase
Throws:
IOException

closeEmptyTag

protected final void closeEmptyTag()
                            throws IOException
Specified by:
closeEmptyTag in class TobagoResponseWriterBase
Throws:
IOException

writerAttributeValue

protected void writerAttributeValue(String value,
                                    boolean escape)
                             throws IOException
Specified by:
writerAttributeValue in class TobagoResponseWriterBase
Throws:
IOException

cloneWithWriter

public javax.faces.context.ResponseWriter cloneWithWriter(Writer originalWriter)
Specified by:
cloneWithWriter in class TobagoResponseWriter

ensureHtmlStyleMap

@Deprecated
public static Style ensureHtmlStyleMap(javax.faces.component.UIComponent component,
                                                  Style styles)
Deprecated. 


startDocument

public void startDocument()
                   throws IOException
Overrides:
startDocument in class TobagoResponseWriterBase
Throws:
IOException

endDocument

public void endDocument()
                 throws IOException
Overrides:
endDocument in class TobagoResponseWriterBase
Throws:
IOException


Copyright © 2002-2014 The Apache Software Foundation. All Rights Reserved.