|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jomic.tools.AbstractTask net.sf.jomic.comic.AbstractCreateComicTask net.sf.jomic.comic.CreateCbzComicTask
public class CreateCbzComicTask
Task to create a CBZ comic from a set of image files.
Constructor Summary | |
---|---|
CreateCbzComicTask(java.io.File newSourceBaseDir,
java.lang.String[] newSourceFileNames,
java.util.Map newComicInfoMap,
java.io.File newTargetZipFile,
Conversion newConversion)
Create a new task to create a CBZ comic. |
Method Summary | |
---|---|
protected void |
addImageFile(java.lang.String outImageName,
java.io.File sourceImageFile)
Add an image file to the target comic stream/document/file/whatever. |
protected void |
cleanUpComic()
Release all resources need allocated 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 net.sf.jomic.comic.AbstractCreateComicTask |
---|
enableAddedAtLeastOneImage, getConversion, getImageInfo, getSourceBaseDir, getTargetComicFile, hasAddedAtLeastOneImage, start |
Methods inherited from class net.sf.jomic.tools.AbstractTask |
---|
addProgressChangeListener, getMaxProgress, getProgress, getProgressMessage, isInterrupted, removeProgressChangeListener, setMaxProgress, setProgress, setProgressMessage |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CreateCbzComicTask(java.io.File newSourceBaseDir, java.lang.String[] newSourceFileNames, java.util.Map newComicInfoMap, java.io.File newTargetZipFile, Conversion newConversion)
newSourceBaseDir
- the base directory where the source files are locatednewSourceFileNames
- the names of the files relative to newSourceBaseDir
that should be included in the archivenewComicInfoMap
- Description of the parameternewTargetZipFile
- the ZIP file to createnewConversion
- a conversion specifying the format and image manipulations of the
new comic; if null, the default will be a conversion creating a CBZ including all the
images specified.Method Detail |
---|
protected void setUpComic() throws java.lang.Exception
AbstractCreateComicTask
cleanUpComic()
either when done or an error occurs.
setUpComic
in class AbstractCreateComicTask
java.lang.Exception
AbstractCreateComicTask.cleanUpComic()
protected void addImageFile(java.lang.String outImageName, java.io.File sourceImageFile) throws java.lang.Exception
AbstractCreateComicTask
addImageFile
in class AbstractCreateComicTask
outImageName
- the name under which the image should be stored (if applicable for
the output format)sourceImageFile
- the source image file to be added
java.lang.Exception
protected void cleanUpComic() throws java.lang.Exception
AbstractCreateComicTask
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 routine must be able to handle null
values without resulting in NullPointerExceptions
.
cleanUpComic
in class AbstractCreateComicTask
java.lang.Exception
AbstractCreateComicTask.setUpComic()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |