net.datacrow.util
Class Directory

java.lang.Object
  extended by net.datacrow.util.Directory

public class Directory
extends java.lang.Object

Reads all files from a specific location

Author:
Robert Jan van der Waals

Constructor Summary
Directory(java.lang.String path, boolean recurse, java.lang.String[] extensions)
           
 
Method Summary
 java.util.List<java.lang.String> read()
          Retrieves all files and directories from the given locations
 void setListener(ITaskListener listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Directory

public Directory(java.lang.String path,
                 boolean recurse,
                 java.lang.String[] extensions)
Method Detail

setListener

public void setListener(ITaskListener listener)

read

public java.util.List<java.lang.String> read()
Retrieves all files and directories from the given locations

Parameters:
installationDir - starting location for reading data
confirm - ask for confirmation for each directory
recurse - read sub directories
dirs - allow directory names in the result
vExtensions - extensions to filter on
logInformation - write messages to the screen and the log