()
| 82 | } |
| 83 | |
| 84 | public synchronized void flush() { |
| 85 | String text = toString(); |
| 86 | |
| 87 | if (text.length() == 0) { |
| 88 | return; |
| 89 | } |
| 90 | |
| 91 | printStream.print(text); |
| 92 | printInConsole(text); |
| 93 | |
| 94 | reset(); |
| 95 | } |
| 96 | |
| 97 | private void printInConsole(String text) { |
| 98 | newLinePrinted = newLinePrinted || text.contains("\n"); |