jcontrol.comm
Interface ConsoleOutputStream

All Superinterfaces:
BasicOutputStream
All Known Implementing Classes:
Console, DisplayConsole, RS232

public interface ConsoleOutputStream
extends BasicOutputStream

Provides a set of high-level communication methods for console output.


Field Summary
static String STD_LF
          The standard linefeed character to print.
 
Method Summary
 void print(String buffer)
          Prints a single String to the stream.
 void println()
          Prints a single linefeed to the stream.
 void println(String buffer)
          Prints a single String followed by a linefeed to the stream.
 
Methods inherited from interface jcontrol.io.BasicOutputStream
close, flush, write, write, write
 

Field Detail

STD_LF

static final String STD_LF
The standard linefeed character to print. May be ignored by implementing classes.

See Also:
Constant Field Values
Method Detail

print

void print(String buffer)
Prints a single String to the stream. This is a blocking operation, if the transmit device is busy the current Thread is yielded and should be woken up if the device becomes ready. Implementing classes may throw an IOException if a timeout is reached. The String is decoded to plain ASCII characters.

Parameters:
buffer - the String to write
See Also:
String

println

void println()
Prints a single linefeed to the stream.


println

void println(String buffer)
Prints a single String followed by a linefeed to the stream.

Parameters:
buffer - the String to write
See Also:
String