Class Collector


  • public class Collector
    extends java.lang.Object
    A Collector is capable of iterating over a collection of Collectables and collecting them in a separate Thread with 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
      void start()
      Starts collecting.
      void waitUntilFinished()
      Waits until collection has finished.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 use
        resources - the resources to collect
        collectedDirectory - 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.IOException
        Waits until collection has finished.
        Throws:
        java.lang.InterruptedException - if waiting was interrupted
        java.io.IOException - if collection failed