public class Collector
extends java.lang.Object
implements java.lang.Runnable
Collectables
and collecting
them in a separate Thread
with a nice GUI.Constructor and Description |
---|
Collector(net.sf.japi.swing.misc.Progress progress,
AbstractResources<?,?,?> resources,
java.io.File collectedDirectory)
Create a Collector.
|
Modifier and Type | Method and Description |
---|---|
void |
run() |
void |
start()
Starts collecting.
|
void |
waitUntilFinished()
Waits until collection has finished.
|
public Collector(@NotNull net.sf.japi.swing.misc.Progress progress, @NotNull AbstractResources<?,?,?> resources, @NotNull java.io.File collectedDirectory)
progress
- the progress to useresources
- the resources to collectcollectedDirectory
- the destination directory to write files topublic void start()
public void waitUntilFinished() throws java.lang.InterruptedException
java.lang.InterruptedException
- if waiting was interruptedpublic void run()
run
in interface java.lang.Runnable