net.sf.jomic.comic
Class ExtractComicTask

java.lang.Object
  extended by net.sf.jomic.tools.AbstractTask
      extended by net.sf.jomic.comic.ExtractComicTask
All Implemented Interfaces:
ProgressChangeListener, Task

public class ExtractComicTask
extends AbstractTask
implements ProgressChangeListener

Task to extract a comic independent of its format.

Author:
Thomas Aglassinger
See Also:
ExtractPdfImagesTask, ExtractRarTask, ExtractZipTask

Constructor Summary
ExtractComicTask(java.io.File newComicFile, java.io.File newTargetFolder)
           
 
Method Summary
 void progressChanged(Task source)
          Set progress to progress of source task, which does the actual extraction.
 void start()
          Start the task, which will cause the progress to iterate from 0 to getMaximum.
 
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

ExtractComicTask

public ExtractComicTask(java.io.File newComicFile,
                        java.io.File newTargetFolder)
                 throws java.io.IOException
Throws:
java.io.IOException
Method Detail

progressChanged

public void progressChanged(Task source)
Set progress to progress of source task, which does the actual extraction.

Specified by:
progressChanged in interface ProgressChangeListener

start

public void start()
           throws java.lang.Exception
Description copied from interface: Task
Start the task, which will cause the progress to iterate from 0 to getMaximum.

Specified by:
start in interface Task
Specified by:
start in class AbstractTask
Throws:
java.lang.Exception