net.sf.jomic.comic
Class CreateZipArchiveTask

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

public class CreateZipArchiveTask
extends AbstractTask

Task to create a ZIP archive.

Author:
Thomas Aglassinger

Constructor Summary
CreateZipArchiveTask(java.io.File newTargetZipFile, java.io.File newSourceBaseDir, java.lang.String[] newSourceFileNames)
          Create a new task to create a ZIP archive.
 
Method Summary
 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

CreateZipArchiveTask

public CreateZipArchiveTask(java.io.File newTargetZipFile,
                            java.io.File newSourceBaseDir,
                            java.lang.String[] newSourceFileNames)
Create a new task to create a ZIP archive.

Parameters:
newTargetZipFile - the ZIP file to create
newSourceBaseDir - the base directory where the source files are located
newSourceFileNames - the names of the files relative to newSourceBaseDir that should be included in the archive
Method Detail

start

public void start()
           throws java.io.IOException
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.io.IOException