sleep.console
Class TextConsole

java.lang.Object
  extended by sleep.console.TextConsole
All Implemented Interfaces:
ConsoleProxy

public class TextConsole
extends java.lang.Object
implements ConsoleProxy

Default implementation of the console proxy class. Provides a STDIN/STDOUT implementation of the sleep console.


Constructor Summary
TextConsole()
           
 
Method Summary
 void consolePrint(java.lang.String message)
          print a message to the console with no newline
 void consolePrintln(java.lang.Object message)
          print a message to the console with a newline
 java.lang.String consoleReadln()
          read a message in from the console.
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextConsole

public TextConsole()
Method Detail

main

public static void main(java.lang.String[] args)

consolePrint

public void consolePrint(java.lang.String message)
Description copied from interface: ConsoleProxy
print a message to the console with no newline

Specified by:
consolePrint in interface ConsoleProxy
Parameters:
message - the message to print

consolePrintln

public void consolePrintln(java.lang.Object message)
Description copied from interface: ConsoleProxy
print a message to the console with a newline

Specified by:
consolePrintln in interface ConsoleProxy
Parameters:
message - the message to print

consoleReadln

public java.lang.String consoleReadln()
Description copied from interface: ConsoleProxy
read a message in from the console. this method should block until a line is read.

Specified by:
consoleReadln in interface ConsoleProxy