1 package net.sourceforge.pmd.util.designer;
2
3 import java.io.PrintStream;
4
5 public class MyPrintStream extends PrintStream {
6
7 public MyPrintStream() {
8 super(System.out);
9 }
10
11 private StringBuffer buf = new StringBuffer();
12
13 public void println(String s) {
14 super.println(s);
15 buf.append(s);
16 buf.append(System.getProperty("line.separator"));
17 }
18
19 public String getString() {
20 return buf.toString();
21 }
22 }
23