Class 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 directory
      java.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 directory
      java.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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RecursiveSearch

        public RecursiveSearch()
    • 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.Exception
        findFiles 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 path
        propertiesName - - 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.Exception
        findFiles 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 path
        propertiesName - - 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.Exception
        searchDirectory 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