com.stevesoft.pat.wrap
Class StringBufferWrap

java.lang.Object
  |
  +--com.stevesoft.pat.wrap.StringBufferWrap
All Implemented Interfaces:
BasicStringBufferLike


public class StringBufferWrap
extends java.lang.Object
implements BasicStringBufferLike

This provides a wrapper for StringBuffer to capture the output of a replacement.


Constructor Summary
StringBufferWrap()
           

 
Method Summary
 void append(char c)
           
 void append(java.lang.String s)
           
 int length()
           
 java.lang.String toString()
           
 StringLike toStringLike()
           
 java.lang.Object unwrap()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StringBufferWrap

public StringBufferWrap()
Method Detail

append

public void append(char c)
Specified by:
append in interface BasicStringBufferLike

append

public void append(java.lang.String s)
Specified by:
append in interface BasicStringBufferLike

length

public int length()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toStringLike

public StringLike toStringLike()
Specified by:
toStringLike in interface BasicStringBufferLike

unwrap

public java.lang.Object unwrap()
Specified by:
unwrap in interface BasicStringBufferLike