Package org.hortonmachine.modules
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.FileFilterfileFilterjava.util.List<java.io.File>filesListjava.lang.StringinFolderjava.lang.StringoutCurrentfilejava.util.List<java.lang.String>pathsListjava.lang.StringpCodejava.lang.StringpRegex -
Constructor Summary
Constructors Constructor Description FileIterator() -
Method Summary
Modifier and Type Method Description static voidaddPrj(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.voidinitProcess()static voidmain(java.lang.String[] args)voidprocess()
-
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
-
FileIterator
public FileIterator()
-
-
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.ExceptionUtility 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
-