rjw.dc.core.objects
Class CdRom

java.lang.Object
  |
  +--rjw.dc.core.objects.CdRom

public class CdRom
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
CdRom()
           
 
Method Summary
 java.lang.String[] getDriveLetters()
          Returns all the active and available drive letters
 java.util.Vector getInformation(java.lang.String sDrive, boolean bConfirmation, boolean bLeveledSearch, boolean bReturnDirectories, java.lang.String sExtension)
          Retrieves all files and directories from the given locations
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CdRom

public CdRom()
Method Detail

getDriveLetters

public java.lang.String[] getDriveLetters()
Returns all the active and available drive letters

Returns:
(String[]) active and available drive letters

getInformation

public java.util.Vector getInformation(java.lang.String sDrive,
                                       boolean bConfirmation,
                                       boolean bLeveledSearch,
                                       boolean bReturnDirectories,
                                       java.lang.String sExtension)
                                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
sExtension - the file extension name (filter)
java.lang.Exception