Clover coverage report - PMD - 3.7 Coverage timestamp: Wed May 31 2006 09:25:59 EDT FRAMES NO FRAMES |
file stats: | LOC: | 23 |  | Methods: | 3
| NCLOC: | 16 |  | Classes: | 1
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 |  |