net.sf.ext.util
Class DirectoryReader

java.lang.Object
  extended bynet.sf.ext.util.DirectoryReader

public class DirectoryReader
extends java.lang.Object

Reads all files from a specific location

Since:
1.4
Version:
1.9
Author:
Robert Jan van der Waals

Constructor Summary
DirectoryReader()
           
 
Method Summary
static java.util.Vector read(java.lang.String sDrive, boolean bConfirmation, boolean bLeveledSearch, boolean bReturnDirectories, java.lang.String[] extensions, boolean logInformation)
          Retrieves all files and directories from the given locations
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectoryReader

public DirectoryReader()
Method Detail

read

public static java.util.Vector read(java.lang.String sDrive,
                                    boolean bConfirmation,
                                    boolean bLeveledSearch,
                                    boolean bReturnDirectories,
                                    java.lang.String[] extensions,
                                    boolean logInformation)
                             throws java.lang.Exception
Retrieves all files and directories from the given locations

Parameters:
sDrive - starting location for reading data
bConfirmation - ask for confirmation for eah directory
bLeveledSearch - read subdirectories
bReturnDirectories - allow directory names in the result
logInformation - write messages to the screen and the log
Throws:
java.lang.Exception