package de.ugoe.cs.util.console; /** *
* Observer for Console. *
* * @author Steffen Herbold */ public interface ConsoleObserver { /** ** If a new message is send to the console, all observers are updated using * this method. *
* * @param newMessage * message that was send to the console. */ public void updateText(String newMessage); /** ** Send messages to the error stream of all observers. *
* * @param errMessage * error message */ public void errStream(String errMessage); /** ** Send messages to the trace stream of all observers. *
* * @param traceMesssage * error message */ public void trace(String traceMessage); /** ** Prints the stack trace of an exception. *
* * @param e * exception whose stack trace is to be printed */ public void printStacktrace(Exception e); }