2 // This software is now distributed according to
3 // the Lesser Gnu Public License. Please see
4 // http://www.gnu.org/copyleft/lesser.txt for
8 package com.stevesoft.pat.wrap;
10 import com.stevesoft.pat.BasicStringBufferLike;
11 import com.stevesoft.pat.StringLike;
14 * This provides a wrapper for StringBuffer to capture the output of a
17 public class StringBufferWrap implements BasicStringBufferLike
19 StringBuffer sb = new StringBuffer();
21 public void append(char c)
26 public void append(String s)
36 public String toString()
41 public StringLike toStringLike()
43 return new StringWrap(sb.toString());
46 public Object unwrap()