ex1
Class ErrorSink

java.lang.Object
  extended byex1.ErrorSink

public class ErrorSink
extends java.lang.Object

This class just accumulates error messages on startup so they be displayed in one group.


Constructor Summary
ErrorSink()
          Creates a new instance of ErrorSink.
 
Method Summary
static void add(java.lang.String s)
          Adds an error string to big buffer
static void display()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ErrorSink

public ErrorSink()
Creates a new instance of ErrorSink. This is only done once for the whole application.

Method Detail

add

public static void add(java.lang.String s)
Adds an error string to big buffer

Parameters:
s - String to add, newline is appended

display

public static void display()