org.faceless.pdf2.viewer2
Class Exporter.ExporterTask
java.lang.Object
LongRunningTask
org.faceless.pdf2.viewer2.Exporter.ExporterTask
- Enclosing class:
- Exporter
public abstract class Exporter.ExporterTask
- extends LongRunningTask
This class is a LongRunningTask
that can be run to save a PDF to
an OutputStream. Subclasses need to implement the savePDF()
method,
which should save the PDF to the OutputStream supplied in the Exporter.getExporter(org.faceless.pdf2.viewer2.DocumentPanel, org.faceless.pdf2.PDF, javax.swing.JComponent, java.io.OutputStream)
method.
This code is copyright the Big Faceless Organization. You're welcome to use, modify and distribute it in any form in your own projects, provided those projects continue to make use of the Big Faceless PDF library.
- Since:
- 2.10.2
Method Summary |
void |
completed()
Called when the save has completed - by default, a no-op |
void |
run()
|
abstract void |
savePDF()
Save the PDF to the OutputStream |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Exporter.ExporterTask
public Exporter.ExporterTask()
run
public void run()
throws IOException
- Throws:
IOException
savePDF
public abstract void savePDF()
throws IOException
- Save the PDF to the OutputStream
- Throws:
IOException
completed
public void completed()
- Called when the save has completed - by default, a no-op
- Since:
- 2.11.2
Copyright © 2001-2010 Big Faceless Organization