org.apache.myfaces.application.pss
Class BufferedStringWriter

java.lang.Object
  extended by java.io.Writer
      extended by org.apache.myfaces.application.pss.FastStringWriter
          extended by org.apache.myfaces.application.pss.BufferedStringWriter
All Implemented Interfaces:
Closeable, Flushable, Appendable

public class BufferedStringWriter
extends FastStringWriter

Author:
Martin Haimberger

Field Summary
 
Fields inherited from class org.apache.myfaces.application.pss.FastStringWriter
_buffer
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
BufferedStringWriter(FacesContext context, int initialCapcity)
           
 
Method Summary
 void flushToWriter(Writer writer)
          flushes the content of this writer to the given writer.
 int length()
           
 
Methods inherited from class org.apache.myfaces.application.pss.FastStringWriter
close, flush, getBuffer, toString, write, write, write
 
Methods inherited from class java.io.Writer
append, append, append, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BufferedStringWriter

public BufferedStringWriter(FacesContext context,
                            int initialCapcity)
Method Detail

flushToWriter

public void flushToWriter(Writer writer)
                   throws IOException
flushes the content of this writer to the given writer.

Parameters:
writer - the content of this writer is written to the given writer
Throws:
IOException - IOException

length

public int length()


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