Class DirWalker

  • All Implemented Interfaces:
    Runnable
    Direct Known Subclasses:
    RestartDirWalker

    public class DirWalker
    extends org.apache.commons.io.DirectoryWalker
    implements Runnable
    Handles the walking of a set of directory trees. Each file found in the tree is added to the changed file list. Any files found among the listed directories will also be added to the changed file list. This is the starting point for synchronization.
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface Runnable
      • stopWalk

        public void stopWalk()
      • walkDirs

        protected void walkDirs()
      • handleDirectory

        protected boolean handleDirectory​(File directory,
                                          int depth,
                                          Collection results)
                                   throws IOException
        Overrides:
        handleDirectory in class org.apache.commons.io.DirectoryWalker
        Throws:
        IOException
      • handleFile

        protected void handleFile​(File file,
                                  int depth,
                                  Collection results)
        Overrides:
        handleFile in class org.apache.commons.io.DirectoryWalker
      • handleIsCancelled

        protected boolean handleIsCancelled​(File file,
                                            int depth,
                                            Collection results)
                                     throws IOException
        Overrides:
        handleIsCancelled in class org.apache.commons.io.DirectoryWalker
        Throws:
        IOException
      • walkComplete

        public boolean walkComplete()
      • getFilesCount

        public int getFilesCount()