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.*;
13 * This provides a wrapper for StringBuffer to capture the output of a
16 public class StringBufferWrap implements BasicStringBufferLike
18 StringBuffer sb = new StringBuffer();
20 public void append(char c)
25 public void append(String s)
35 public String toString()
40 public StringLike toStringLike()
42 return new StringWrap(sb.toString());
45 public Object unwrap()