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 Summary

    Fields 
    Modifier and Type Field Description
    java.io.FileFilter fileFilter  
    java.util.List<java.io.File> filesList  
    java.lang.String inFolder  
    java.lang.String outCurrentfile  
    java.util.List<java.lang.String> pathsList  
    java.lang.String pCode  
    java.lang.String pRegex  

    Fields inherited from class org.hortonmachine.gears.libs.modules.HMModel

    doProcess, doReset, gf, pm
  • Constructor Summary

    Constructors 
    Constructor Description
    FileIterator()  
  • Method Summary

    Modifier and Type Method Description
    static void addPrj​(java.lang.String folder, java.lang.String epsg)
    Utility to add to all found files in a given folder the prj file following the supplied epsg.
    void initProcess()  
    static void main​(java.lang.String[] args)  
    void process()  

    Methods inherited from class org.hortonmachine.gears.libs.modules.HMModel

    checkCancel, checkFileExists, checkNull, checkWorkingFolderInPath, concatOr, dumpRaster, dumpVector, getDefaultThreadsNum, getRaster, getVector, help, isCanceled, template

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • inFolder

      public java.lang.String inFolder
    • pRegex

      public java.lang.String pRegex
    • pCode

      public java.lang.String pCode
    • fileFilter

      public java.io.FileFilter fileFilter
    • outCurrentfile

      public java.lang.String outCurrentfile
    • filesList

      public java.util.List<java.io.File> filesList
    • pathsList

      public java.util.List<java.lang.String> pathsList
  • Constructor Details

  • Method Details

    • initProcess

      public void initProcess()
    • process

      public void process() throws java.lang.Exception
      Throws:
      java.lang.Exception
    • addPrj

      public static void addPrj​(java.lang.String folder, java.lang.String epsg) throws java.lang.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:
      java.lang.Exception
    • main

      public static void main​(java.lang.String[] args) throws java.lang.Exception
      Throws:
      java.lang.Exception