1 4 package com.tcsimulator.listener; 5 6 7 import com.tc.simulator.listener.OutputListener; 8 9 import java.io.PrintStream ; 10 11 public final class OutputListenerObject implements OutputListener { 12 private PrintStream out; 13 private PrintStream err; 14 15 public OutputListenerObject() { 16 this.out = System.out; 17 this.err = System.err; 18 } 19 20 public void println(Object o) { 21 this.out.println(o); 22 } 23 24 public void printerr(Object o) { 25 this.err.println(o); 26 } 27 } | Popular Tags |