01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tcsimulator.listener;
05:
06: import com.tc.simulator.listener.OutputListener;
07:
08: import java.io.PrintStream;
09:
10: public final class OutputListenerObject implements OutputListener {
11: private PrintStream out;
12: private PrintStream err;
13:
14: public OutputListenerObject() {
15: this .out = System.out;
16: this .err = System.err;
17: }
18:
19: public void println(Object o) {
20: this .out.println(o);
21: }
22:
23: public void printerr(Object o) {
24: this.err.println(o);
25: }
26: }
|