fun QLFFilesCollection( directory: File?, extension: String?, featureClass: Class<F?>?, pathRegexFind: String?, pathRegexRep: String? ) { this(featureClass, pathRegexFind, pathRegexRep) processDirs(directory, extension) }
Construct the collection from the files in the given directory that have the given file extension . All the files are expected to contain features of the given feature class . The file search is recursive , and will also look in sub-directories of the specified directory . The final two parameters allow a regular-expression find and replace operation for be performed on the found filenames in order to create the document identifier for each QLFDocument . This is useful to ensure only the document name is stored in the index , rather than the absolute path .