com.go.tea.util
Class ConsoleErrorReporter

java.lang.Object
  |
  +--com.go.tea.util.ConsoleErrorReporter
All Implemented Interfaces:
ErrorListener, java.util.EventListener

public class ConsoleErrorReporter
extends java.lang.Object
implements ErrorListener

ConsoleErrorReporter takes ErrorEvents and prints detailed messages to a PrintStream. When no longer needed, close the ConsoleErrorReporter to ensure all open resources (except the PrintStream) are closed.

Version:
11 , 00/12/13
Author:
Brian S O'Neill

Constructor Summary
ConsoleErrorReporter(java.io.PrintStream out)
           
 
Method Summary
 void close()
          Closes all open resources.
 void compileError(ErrorEvent e)
           
protected  void finalize()
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsoleErrorReporter

public ConsoleErrorReporter(java.io.PrintStream out)
Method Detail

close

public void close()
           throws java.io.IOException
Closes all open resources.

compileError

public void compileError(ErrorEvent e)
Specified by:
compileError in interface ErrorListener

finalize

protected void finalize()
                 throws java.lang.Throwable
Overrides:
finalize in class java.lang.Object