org.apache.tapestry.util.pool
Class StringBufferAdaptor

java.lang.Object
  |
  +--org.apache.tapestry.util.pool.NullPoolableAdaptor
        |
        +--org.apache.tapestry.util.pool.StringBufferAdaptor
All Implemented Interfaces:
IPoolableAdaptor

public class StringBufferAdaptor
extends NullPoolableAdaptor

Adaptor for StringBuffer, that clears the buffer as it is returned to the pool.

Since:
3.0
Version:
$Id: StringBufferAdaptor.java,v 1.4 2004/02/19 17:37:40 hlship Exp $
Author:
Howard Lewis Ship

Constructor Summary
StringBufferAdaptor()
           
 
Method Summary
 void resetForPool(Object object)
          Sets the length of the StringBuffer to zero.
 
Methods inherited from class org.apache.tapestry.util.pool.NullPoolableAdaptor
discardFromPool
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringBufferAdaptor

public StringBufferAdaptor()
Method Detail

resetForPool

public void resetForPool(Object object)
Sets the length of the StringBuffer to zero.

Specified by:
resetForPool in interface IPoolableAdaptor
Overrides:
resetForPool in class NullPoolableAdaptor