KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tcsimulator > listener > OutputListenerObject


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

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