net.sf.dc.core.objects
Class DriveReader
java.lang.Object
net.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
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 |
DriveReader
public DriveReader()
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 databConfirmation
- ask for confirmation for eah directorybLeveledSearch
- read subdirectoriesbReturnDirectories
- allow directory names in the resultvExtensions
- extensions to filter on
- Throws:
java.lang.Exception