-//\r
-// This software is now distributed according to\r
-// the Lesser Gnu Public License. Please see\r
-// http://www.gnu.org/copyleft/lesser.txt for\r
-// the details.\r
-// -- Happy Computing!\r
-//\r
-package com.stevesoft.pat.wrap;\r
-\r
-import com.stevesoft.pat.*;\r
-\r
-/** This provides a wrapper for StringBuffer to\r
- capture the output of a replacement. */\r
-public class StringBufferWrap\r
- implements BasicStringBufferLike\r
-{\r
- StringBuffer sb = new StringBuffer();\r
- public void append(char c)\r
- {\r
- sb.append(c);\r
- }\r
-\r
- public void append(String s)\r
- {\r
- sb.append(s);\r
- }\r
-\r
- public int length()\r
- {\r
- return sb.length();\r
- }\r
-\r
- public String toString()\r
- {\r
- return sb.toString();\r
- }\r
-\r
- public StringLike toStringLike()\r
- {\r
- return new StringWrap(sb.toString());\r
- }\r
-\r
- public Object unwrap()\r
- {\r
- return sb;\r
- }\r
-}\r
+//
+// This software is now distributed according to
+// the Lesser Gnu Public License. Please see
+// http://www.gnu.org/copyleft/lesser.txt for
+// the details.
+// -- Happy Computing!
+//
+package com.stevesoft.pat.wrap;
+
+import com.stevesoft.pat.*;
+
+/**
+ * This provides a wrapper for StringBuffer to capture the output of a
+ * replacement.
+ */
+public class StringBufferWrap implements BasicStringBufferLike
+{
+ StringBuffer sb = new StringBuffer();
+
+ public void append(char c)
+ {
+ sb.append(c);
+ }
+
+ public void append(String s)
+ {
+ sb.append(s);
+ }
+
+ public int length()
+ {
+ return sb.length();
+ }
+
+ public String toString()
+ {
+ return sb.toString();
+ }
+
+ public StringLike toStringLike()
+ {
+ return new StringWrap(sb.toString());
+ }
+
+ public Object unwrap()
+ {
+ return sb;
+ }
+}