cynosurex.lang
Class SystemOutReceiver

java.lang.Object
  extended by cynosurex.lang.SystemOutReceiver
All Implemented Interfaces:
cynosurex.internal.AuthorCommon, cynosurex.internal.CommonInterface, cynosurex.internal.CompanyCommon, TextReceiver

public class SystemOutReceiver
extends java.lang.Object
implements cynosurex.internal.CommonInterface, TextReceiver

This class receives the text messages through the TextReceiver interface and outputs the message to the screen using the System.out.print () or the System.out.println () method.

Version:
1.0
Author:
Chieh Cheng
See Also:
TextReceiver

Constructor Summary
SystemOutReceiver()
           
 
Method Summary
 void receiveText(java.lang.String text)
          This method outputs the text message to the standard out via the System.out.print () or the System.out.println () method.
 void setAutoNewLine(boolean state)
          Set whether new line character(s) is automatically added.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemOutReceiver

public SystemOutReceiver()
Method Detail

receiveText

public void receiveText(java.lang.String text)
This method outputs the text message to the standard out via the System.out.print () or the System.out.println () method.

Specified by:
receiveText in interface TextReceiver
Parameters:
text - The text message to output.

setAutoNewLine

public void setAutoNewLine(boolean state)
Set whether new line character(s) is automatically added.

Parameters:
state - True or false.