com.stevesoft.pat.wrap
Class CharArrayBufferWrap

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


public class CharArrayBufferWrap
extends java.lang.Object
implements BasicStringBufferLike

Allows the outcome of a replaceAll() or replaceFirst() to be an array of characters rather than a String.


Constructor Summary
CharArrayBufferWrap()
           
 
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

CharArrayBufferWrap

public CharArrayBufferWrap()
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

toStringLike

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

length

public int length()

toString

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

unwrap

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