org.processmining.mining.geneticmining.analysis.duplicates
Class RetrieveFiles

java.lang.Object
  extended by org.processmining.mining.geneticmining.analysis.duplicates.RetrieveFiles

public class RetrieveFiles
extends java.lang.Object

This class retrieves all the files that have a certain termination in a directory and, if required, all of its subdirectories.

Version:
1.0
Author:
Ana Karla A. de Medeiros

Constructor Summary
RetrieveFiles(java.lang.String rootDirFiles, java.lang.String fileTermination, boolean includeSubdirectories)
           
 
Method Summary
static void checkIfDirectoryExists(java.io.File directory)
          Checks if a given directory exists.
 java.io.File[] getFiles()
          Lists all the found files.
 java.lang.String[] getNames()
          List the names of the found files.
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RetrieveFiles

public RetrieveFiles(java.lang.String rootDirFiles,
                     java.lang.String fileTermination,
                     boolean includeSubdirectories)
              throws java.io.FileNotFoundException
Throws:
java.io.FileNotFoundException
Method Detail

getFiles

public java.io.File[] getFiles()
Lists all the found files.


getNames

public java.lang.String[] getNames()
List the names of the found files. The names exclude the file termination that was provided for the constructor method.


checkIfDirectoryExists

public static void checkIfDirectoryExists(java.io.File directory)
                                   throws java.io.FileNotFoundException
Checks if a given directory exists.

Throws:
java.io.FileNotFoundException - if the provided "directory" does not exists or is not a directory.

main

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