net.sourceforge.arbaro.export
Class ShieldedExporter

java.lang.Object
  extended by net.sourceforge.arbaro.export.ShieldedExporter
All Implemented Interfaces:
Exporter
Direct Known Subclasses:
ShieldedGUIExporter

public class ShieldedExporter
extends java.lang.Object
implements Exporter

Exporter Facade with exception handling. Delegates all methods of the Exporter interface to an exporter object given in then constructor. Exceptions are printed to the console.


Constructor Summary
ShieldedExporter(Exporter exporter)
           
 
Method Summary
 java.io.PrintWriter getWriter()
          Delegates to exporter.getWriter and handles exceptions
protected  void showException(java.lang.Exception e)
           
 void write(java.io.PrintWriter w, Progress progress)
          Delegates to exporter.write and handles exceptions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShieldedExporter

public ShieldedExporter(Exporter exporter)
Method Detail

showException

protected void showException(java.lang.Exception e)

getWriter

public java.io.PrintWriter getWriter()
Delegates to exporter.getWriter and handles exceptions

Specified by:
getWriter in interface Exporter

write

public void write(java.io.PrintWriter w,
                  Progress progress)
Delegates to exporter.write and handles exceptions

Specified by:
write in interface Exporter