Modifier and Type | Field and Description |
---|---|
Vector |
filesAdded
This is a collection of File objects representing directories, and Strings representing file names.
|
Constructor and Description |
---|
FileList() |
Modifier and Type | Method and Description |
---|---|
boolean |
addAFile(File f)
Add a non-directory file.
|
int |
addFiles(File dir)
Add all files in a directory including subdirectories and the directory itself.
|
int |
addFiles(File dir,
boolean addSubDirs,
boolean addDirectoryItself)
Add all files in a directory.
|
boolean |
deleteAll() |
public Vector filesAdded
public int addFiles(File dir)
dir
- the Directory.public boolean addAFile(File f)
f
- the file to added. If it exists and is not a directory it will be added as a String to filesAdded.public int addFiles(File dir, boolean addSubDirs, boolean addDirectoryItself)
dir
- the Directory.addSubDirs
- true to also add files in the subdirectories of the dir.addDirectoryItself
- true to add the dir itself.public boolean deleteAll() throws IOException, StoppedException
IOException
StoppedException