Package net.sf.gridarta.commands
Class Collector
- java.lang.Object
-
- net.sf.gridarta.commands.Collector
-
public class Collector extends java.lang.ObjectA Collector is capable of iterating over a collection ofCollectablesand collecting them in a separateThreadwith a nice GUI.
-
-
Constructor Summary
Constructors Constructor Description Collector(@NotNull net.sf.japi.swing.misc.Progress progress, @NotNull AbstractResources<?,?,?> resources, @NotNull java.io.File collectedDirectory)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidstart()Starts collecting.voidwaitUntilFinished()Waits until collection has finished.
-
-
-
Constructor Detail
-
Collector
public Collector(@NotNull @NotNull net.sf.japi.swing.misc.Progress progress, @NotNull @NotNull AbstractResources<?,?,?> resources, @NotNull @NotNull java.io.File collectedDirectory)Creates a new instance.- Parameters:
progress- the progress to useresources- the resources to collectcollectedDirectory- the destination directory to write files to
-
-
Method Detail
-
start
public void start()
Starts collecting.
-
waitUntilFinished
public void waitUntilFinished() throws java.lang.InterruptedException, java.io.IOExceptionWaits until collection has finished.- Throws:
java.lang.InterruptedException- if waiting was interruptedjava.io.IOException- if collection failed
-
-