public class DirectoryStack extends Object
Constructor and Description |
---|
DirectoryStack() |
DirectoryStack(List<File> entries) |
Modifier and Type | Method and Description |
---|---|
void |
addDirectory(File dir) |
List<File> |
getDirectories() |
File |
getFile(String name)
Gets the file given its name in this virtual directory.
|
boolean |
isEmpty() |
File[] |
listFiles() |
File[] |
listFiles(FileFilter filter) |
static void |
main(String[] args) |
public boolean isEmpty()
public void addDirectory(File dir) throws IOException
IOException
public File getFile(String name) throws IOException
The canonical file is returned if any file is found
name
- the file name to lookupIOException
public File[] listFiles()
public File[] listFiles(FileFilter filter)
public static void main(String[] args)
Copyright © 2015 Nuxeo SA. All rights reserved.