Class FileIterator

java.lang.Object
org.hortonmachine.gears.libs.modules.HMModel
org.hortonmachine.modules.FileIterator

public class FileIterator extends org.hortonmachine.gears.libs.modules.HMModel
  • Field Details

    • inFolder

      public String inFolder
    • pRegex

      public String pRegex
    • pCode

      public String pCode
    • fileFilter

      public FileFilter fileFilter
    • outCurrentfile

      public String outCurrentfile
    • filesList

      public List<File> filesList
    • pathsList

      public List<String> pathsList
  • Constructor Details

    • FileIterator

      public FileIterator()
  • Method Details

    • initProcess

      public void initProcess()
    • process

      public void process() throws Exception
      Throws:
      Exception
    • addPrj

      public static void addPrj(String folder, String epsg) throws Exception
      Utility to add to all found files in a given folder the prj file following the supplied epsg.
      Parameters:
      folder - the folder to browse.
      epsg - the epsg from which to take the prj.
      Throws:
      Exception
    • main

      public static void main(String[] args) throws Exception
      Throws:
      Exception