uk.ac.bham.gloss
Class PrintStreamMessages

java.lang.Object
  extended by uk.ac.bham.gloss.PrintStreamMessages
All Implemented Interfaces:
MessageCallBack
Direct Known Subclasses:
ErrorMessages, StdOutMessages

public class PrintStreamMessages
extends java.lang.Object
implements MessageCallBack

Interface providing a call-back mechanism for error-messages etc to be sent to the standard error stream. Copyright Richard Kaye 2007-8 for GLOSS, http://gloss.bham.ac.uk Usage permitted according to the GPL. No waranty.


Constructor Summary
PrintStreamMessages(java.io.PrintStream file)
          constructor
 
Method Summary
 void print(java.lang.String s)
          Prints the String s to the message call-back mechanism, without carriage return.
 void println()
          Prints carriage return.
 void println(java.lang.String s)
          Prints the String s to the message call-back mechanism, with carriage return.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrintStreamMessages

public PrintStreamMessages(java.io.PrintStream file)
constructor

Method Detail

println

public void println()
Prints carriage return.

Specified by:
println in interface MessageCallBack

println

public void println(java.lang.String s)
Prints the String s to the message call-back mechanism, with carriage return.

Specified by:
println in interface MessageCallBack

print

public void print(java.lang.String s)
Prints the String s to the message call-back mechanism, without carriage return.

Specified by:
print in interface MessageCallBack