sleep.console

Class TextConsole

Implemented Interfaces:
ConsoleProxy

public class TextConsole
extends 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(String message)
print a message to the console with no newline
void
consolePrintln(Object message)
print a message to the console with a newline
String
consoleReadln()
read a message in from the console.
static void
main(args[] )

Constructor Details

TextConsole

public TextConsole()

Method Details

consolePrint

public void consolePrint(String message)
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(Object message)
print a message to the console with a newline
Specified by:
consolePrintln in interface ConsoleProxy
Parameters:
message - the message to print

consoleReadln

public String consoleReadln()
read a message in from the console. this method should block until a line is read.
Specified by:
consoleReadln in interface ConsoleProxy

main

public static void main(args[] )