|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.huguesjohnson.BatchCompressionThread
public abstract class BatchCompressionThread
BatchCompressionThread compresses a list of files into individual archives.
| Constructor Summary | |
|---|---|
BatchCompressionThread(BatchCompressionThreadParameters parameters)
Creates a new instance of BatchCompressionThread. |
|
| Method Summary | |
|---|---|
void |
run()
Starts the batch compression thread, archives each file in the file list and performs the action specified in the parameters. |
void |
start()
Begins thread execution. |
abstract void |
updateCurrentFileProgress(java.lang.String status,
int percentComplete)
Updates status and percent complete for the current file. |
abstract void |
updateTotalProgress(java.lang.String status,
int percentComplete)
Updates status and percent complete for the overall progress. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BatchCompressionThread(BatchCompressionThreadParameters parameters)
parameters - The parameters for the thread.| Method Detail |
|---|
public void start()
public void run()
Override updateTotalProgress & updateCurrentFileProgress to monitor the progress of the thread.
run in interface java.lang.Runnable
public abstract void updateTotalProgress(java.lang.String status,
int percentComplete)
status - a brief description.percentComplete - The percent complete for the current operation.
public abstract void updateCurrentFileProgress(java.lang.String status,
int percentComplete)
status - A brief description.percentComplete - The percent complete for the current operation.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||