things.common.impl
Class StringPosterConsole

java.lang.Object
  extended by things.common.impl.StringPosterConsole
All Implemented Interfaces:
StringPoster

public class StringPosterConsole
extends java.lang.Object
implements StringPoster

Postable implementation for printing to the console.

Version:
1.0

Version History

EPG - Initial - 27 JUL 04
 
Author:
Erich P. Gatejen

Constructor Summary
StringPosterConsole()
           
 
Method Summary
 void flush()
          Try to flush.
 void post(java.lang.String message)
          Post as a message.
 void postit(java.lang.String message)
          Post as a message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringPosterConsole

public StringPosterConsole()
Method Detail

post

public void post(java.lang.String message)
          throws ThingsException
Post as a message.

Specified by:
post in interface StringPoster
Parameters:
message - String to post
Throws:
ThingsException

postit

public void postit(java.lang.String message)
Post as a message. Best effort. Ignore errors.

Specified by:
postit in interface StringPoster
Parameters:
message - String to post

flush

public void flush()
Try to flush. Never error no matter what.

Specified by:
flush in interface StringPoster


Things.