net.sf.jomic.comic
Class CreatePdfComicTask
java.lang.Object
net.sf.jomic.tools.AbstractTask
net.sf.jomic.comic.AbstractCreateComicTask
net.sf.jomic.comic.CreatePdfComicTask
- All Implemented Interfaces:
- Task
public class CreatePdfComicTask
- extends AbstractCreateComicTask
Task to create a PDF comic from a set of image files.
- Author:
- Thomas Aglassinger
|
Method Summary |
protected void |
addImageFile(String outName,
File imageFile)
Add an image file to the target comic stream/document/file/whatever. |
protected void |
cleanUpComic()
Release all resources need allocted by setUpComic() to create the target comic
stream/document/file/whatever. |
protected void |
setUpComic()
Allocate all resources needed to create the target comic file. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CreatePdfComicTask
public CreatePdfComicTask(File newSourceBaseDir,
String[] newSourceFileNames,
Map newImageInfoMap,
File newTargetPdfFile,
Conversion newConversion)
setUpComic
protected void setUpComic()
throws Exception
- Description copied from class:
AbstractCreateComicTask
- Allocate all resources needed to create the target comic file. They will be released when
done by calling
cleanUpComic() either when done or an error occurs.
- Specified by:
setUpComic in class AbstractCreateComicTask
- Throws:
Exception- See Also:
AbstractCreateComicTask.cleanUpComic()
addImageFile
protected void addImageFile(String outName,
File imageFile)
throws Exception
- Description copied from class:
AbstractCreateComicTask
- Add an image file to the target comic stream/document/file/whatever.
- Specified by:
addImageFile in class AbstractCreateComicTask
- Parameters:
outName - the name under which the image should be stored (if applicable for
the output format)imageFile - the source image file to be added
- Throws:
Exception
cleanUpComic
protected void cleanUpComic()
throws Exception
- Description copied from class:
AbstractCreateComicTask
- Release all resources need allocted by
setUpComic() to create the target comic
stream/document/file/whatever. This will be called in any case even if something went
wrong during setUpComic() so this rourtine must be able to handle null
values without resulting in NullPointerExceptions.
- Specified by:
cleanUpComic in class AbstractCreateComicTask
- Throws:
Exception- See Also:
AbstractCreateComicTask.setUpComic()