org.apache.myfaces.renderkit.html.util
Class HtmlBufferResponseWriterWrapper

java.lang.Object
  extended by java.io.Writer
      extended by javax.faces.context.ResponseWriter
          extended by org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlResponseWriterImpl
              extended by org.apache.myfaces.renderkit.html.util.HtmlBufferResponseWriterWrapper
All Implemented Interfaces:
Closeable, Flushable, Appendable

public class HtmlBufferResponseWriterWrapper
extends org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlResponseWriterImpl

A buffer for content which should not directly be rendered to the page.

Version:
$Revision: 169649 $ $Date: 2005-05-11 17:47:12 +0200 (Wed, 11 May 2005) $
Author:
Sylvain Vieujot (latest modification by $Author: grantsmith $)

Field Summary
 
Fields inherited from class java.io.Writer
lock
 
Method Summary
 javax.faces.context.ResponseWriter getInitialWriter()
          Get the writer that should have originally been written to.
static HtmlBufferResponseWriterWrapper getInstance(javax.faces.context.ResponseWriter initialWriter)
          Create an instance of the HtmlBufferResponseWriterWrapper
 String toString()
          Get the content of the buffer.
 
Methods inherited from class org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlResponseWriterImpl
cloneWithWriter, close, endDocument, endElement, flush, getCharacterEncoding, getContentType, setContentType, startDocument, startElement, supportsContentType, write, write, write, write, write, writeAttribute, writeComment, writeText, writeText, writeURIAttribute
 
Methods inherited from class java.io.Writer
append, append, append
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getInitialWriter

public javax.faces.context.ResponseWriter getInitialWriter()
Get the writer that should have originally been written to.

Returns:
The original writer.

getInstance

public static HtmlBufferResponseWriterWrapper getInstance(javax.faces.context.ResponseWriter initialWriter)
Create an instance of the HtmlBufferResponseWriterWrapper

Parameters:
initialWriter - The writer the content should have originally gone to, this will only be used to copy settings.
Returns:
A properly initialized writer which stores the output in a buffer; writer is wrapped.

toString

public String toString()
Get the content of the buffer.

Overrides:
toString in class Object
Returns:
The content of the buffered and wrapped writer.


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.