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;
12 import com.stevesoft.pat.*;
15 * Allows the outcome of a replaceAll() or replaceFirst() to be directed to a
16 * Writer rather than a String.
18 * The method toStringLike() cannot work, however. This means that the return
19 * value of replaceAll() will be null if this Object is used as the
22 public class WriterWrap implements BasicStringBufferLike
26 public WriterWrap(Writer w)
31 public void append(char c)
36 } catch (IOException ioe)
41 public void append(String s)
46 } catch (IOException ioe)
51 /** This operation can't really be done. */
52 public StringLike toStringLike()
57 public Object unwrap()