KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > simulator > listener > MockOutputListener


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.tc.simulator.listener;
5
6 import java.io.PrintStream JavaDoc;
7
8
9 public class MockOutputListener implements OutputListener {
10   
11   public PrintStream JavaDoc out = System.out;
12   public PrintStream JavaDoc err = System.err;
13   
14   public void setGlobalId(long globalId) {
15     return;
16   }
17
18   public void println(Object JavaDoc o) {
19     out.println(o);
20   }
21
22   public void printerr(Object JavaDoc o) {
23     err.println(o);
24   }
25   
26 }
27
Popular Tags