net.sourceforge.arbaro.export
Class ShieldedExporter
java.lang.Object
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.
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 |
ShieldedExporter
public ShieldedExporter(Exporter exporter)
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