com.jstatcom.component
Class SystemOutHolder

java.lang.Object
  extended by com.jstatcom.component.SystemOutHolder
All Implemented Interfaces:
OutHolder

public final class SystemOutHolder
extends java.lang.Object
implements OutHolder

Simple implementation of the OutHolder interface that redirects output to log.info in the append method. This class can be used with PCall objects in non graphical console applications or in unit tests.

Author:
Markus Kraetzig

Constructor Summary
SystemOutHolder()
           
 
Method Summary
 void append(java.lang.String out)
          Redirects out to System.out.
 void clear()
          Empty implementation.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemOutHolder

public SystemOutHolder()
Method Detail

append

public void append(java.lang.String out)
Redirects out to System.out.

Specified by:
append in interface OutHolder
Parameters:
out - the string to append

clear

public void clear()
Empty implementation.

Specified by:
clear in interface OutHolder