net.sf.dc.core.objects
Class DriveReader

java.lang.Object
  extended bynet.sf.dc.core.objects.DriveReader

public class DriveReader
extends java.lang.Object

Holder of all the drives on the system. An array of drives, A: to Z: is tested if they exist on the system and passed on another array which holds all available drives.

Since:
1.3
Version:
DC0.50
Author:
Robert-Jan van der Waals

Constructor Summary
DriveReader()
           
 
Method Summary
 java.util.Vector getInformation(java.lang.String sDrive, boolean bConfirmation, boolean bLeveledSearch, boolean bReturnDirectories, java.util.Vector vExtensions)
          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

DriveReader

public DriveReader()
Method Detail

getInformation

public java.util.Vector getInformation(java.lang.String sDrive,
                                       boolean bConfirmation,
                                       boolean bLeveledSearch,
                                       boolean bReturnDirectories,
                                       java.util.Vector vExtensions)
                                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
vExtensions - extensions to filter on
Throws:
java.lang.Exception