|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.mucommander.job.FileJob
com.mucommander.job.TransferFileJob
com.mucommander.job.ArchiveJob
public class ArchiveJob
This FileJob is responsible for compressing a set of files into an archive file.
| Field Summary |
|---|
| Fields inherited from class com.mucommander.job.FileJob |
|---|
APPEND_ACTION, APPEND_TEXT, baseSourceFolder, CANCEL_ACTION, CANCEL_TEXT, currentFile, currentFileIndex, currentFileInfo, files, FINISHED, INTERRUPTED, mainFrame, nbFiles, NOT_STARTED, PAUSED, progressDialog, RETRY_ACTION, RETRY_TEXT, RUNNING, SKIP_ACTION, SKIP_TEXT |
| Constructor Summary | |
|---|---|
ArchiveJob(ProgressDialog progressDialog,
MainFrame mainFrame,
FileSet files,
AbstractFile destFile,
int archiveFormat,
java.lang.String archiveComment)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getStatusString()
This method is overridden to return a custom string "Checking integrity of CURRENT_FILE" when the current file is being checked for integrity. |
protected boolean |
hasFolderChanged(AbstractFile folder)
Returns true if the given folder has or may have been modified by this job. |
protected void |
jobStarted()
Overriden method to initialize the archiver and handle the case where the destination file already exists. |
void |
jobStopped()
Overriden method to close the archiver. |
protected boolean |
processFile(AbstractFile file,
java.lang.Object recurseParams)
Automatically called by FileJob.run() for each file that needs to be processed. |
| Methods inherited from class com.mucommander.job.FileJob |
|---|
addFileJobListener, getCurrentFileIndex, getCurrentFileInfo, getEffectiveJobTime, getEndDate, getNbFiles, getPausedTime, getPauseStartDate, getStartDate, getState, interrupt, jobCompleted, refreshTables, removeFileJobListener, run, selectFileWhenFinished, setAutoUnmark, setPaused, setState, showErrorDialog, showErrorDialog, start, waitForUserResponse |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ArchiveJob(ProgressDialog progressDialog,
MainFrame mainFrame,
FileSet files,
AbstractFile destFile,
int archiveFormat,
java.lang.String archiveComment)
| Method Detail |
|---|
protected boolean processFile(AbstractFile file,
java.lang.Object recurseParams)
FileJobFileJob.run() for each file that needs to be processed.
processFile in class FileJobfile - the file or folder to processrecurseParams - array of parameters which can be used when calling this method recursively, contains null when called by FileJob.run()
true if the operation was sucessfulprotected boolean hasFolderChanged(AbstractFile folder)
FileJobtrue if the given folder has or may have been modified by this job.
This method is called after this job has finished processing files, to determine if the current MainFrame's
file tables need to be refreshed to reveal the modified contents.
hasFolderChanged in class FileJobfolder - the folder to test
protected void jobStarted()
jobStarted in class FileJobpublic void jobStopped()
jobStopped in class TransferFileJobpublic java.lang.String getStatusString()
TransferFileJob
getStatusString in class TransferFileJob
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This file is part of muCommander - Copyright (C) 2002-2008 Maxence Bernard