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