Package edu.odu.cs.cs350
Class RecursiveSearch
- java.lang.Object
-
- edu.odu.cs.cs350.RecursiveSearch
-
public class RecursiveSearch extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description RecursiveSearch()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.io.File>findFiles(java.lang.String startDir)findFiles recursively searches a given file path using properties loaded from a property file (.ini) and check if the file path ends with a directoryjava.util.List<java.io.File>findFiles(java.lang.String startDir, java.util.List<java.lang.String> extensions)findFiles recursively searches a given file path using properties loaded from a property file (.ini) and check if the file path ends with a directoryjava.util.List<java.io.File>searchDirectory(java.lang.String startDir)searchDirectory recursively searches a given file and check if the file path ends with a directory
-
-
-
Method Detail
-
findFiles
public java.util.List<java.io.File> findFiles(java.lang.String startDir, java.util.List<java.lang.String> extensions) throws java.lang.ExceptionfindFiles recursively searches a given file path using properties loaded from a property file (.ini) and check if the file path ends with a directory- Parameters:
startDir- - the start of the absolute file pathpropertiesName- - the name of the .ini file- Throws:
java.lang.Exception
-
findFiles
public java.util.List<java.io.File> findFiles(java.lang.String startDir) throws java.lang.ExceptionfindFiles recursively searches a given file path using properties loaded from a property file (.ini) and check if the file path ends with a directory- Parameters:
startDir- - the start of the absolute file pathpropertiesName- - the name of the .ini file- Throws:
java.lang.Exception
-
searchDirectory
public java.util.List<java.io.File> searchDirectory(java.lang.String startDir) throws java.lang.ExceptionsearchDirectory recursively searches a given file and check if the file path ends with a directory- Parameters:
startDir- - the start of the absolute file path- Throws:
java.lang.Exception
-
-