Interface Resource.Walker

Enclosing class:
Resource

public static interface Resource.Walker
Interface used by Resource.walk(Walker, File) to walk the paths matched by a Resource.
  • Method Summary

    Modifier and Type Method Description
    boolean processDir​(Resource resource, File dir, File destDir)
    Processes the specified folder.
    void processFile​(Resource resource, File file, File destDir)
    Processes the specified file.
  • Method Details

    • processDir

      boolean processDir​(Resource resource, File dir, File destDir) throws IOException
      Processes the specified folder. This typically does nothing but return true to signal that the files in the folder should be processed using processFile(Resource, File, File).
      Throws:
      IOException
    • processFile

      void processFile​(Resource resource, File file, File destDir) throws IOException
      Processes the specified file. This typically copies the file to the destination directory possibly renaming/transforming the file in some way in the process.
      Throws:
      IOException