stella.util
Class Message

java.lang.Object
  extended by stella.util.Message

public final class Message
extends Object

A simple helper class to ease output of information messages. This class is replaced by the syslog package. This package is loaded and initialized with any instance of the PropertyBundles.


Field Summary
private static PrintStream ERR
           
private static PrintStream OUT
           
 
Constructor Summary
Message()
           
 
Method Summary
static void clerror(String mess, Object caller)
          Prints a general warning to System.err.
static void clout(String mess, Object caller)
          Prints a general warning to System.err.
static void error(String mess)
          Prints a general warning to System.err.
private static String getClassName(Object instance)
          Retrieves the name of the argument class.
private static String getTimeTag()
          Retrieves a time tag accurate to ms.
static void out(String mess)
          Outputs a general info to System.out.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ERR

private static final PrintStream ERR

OUT

private static final PrintStream OUT
Constructor Detail

Message

public Message()
Method Detail

error

public static final void error(String mess)
Prints a general warning to System.err.


out

public static final void out(String mess)
Outputs a general info to System.out.


clerror

public static final void clerror(String mess,
                                 Object caller)
Prints a general warning to System.err. Additionally, the name of the calling class is appended to the message in parenthesis.


clout

public static final void clout(String mess,
                               Object caller)
Prints a general warning to System.err. Additionally, the name of the calling class is appended to the message in parenthesis.


getClassName

private static final String getClassName(Object instance)
Retrieves the name of the argument class. Package names are stripped from the name.


getTimeTag

private static final String getTimeTag()
Retrieves a time tag accurate to ms.