Class DirectoryStack
- java.lang.Object
-
- org.nuxeo.ecm.webengine.model.impl.DirectoryStack
-
public class DirectoryStack extends Object
- Author:
- Bogdan Stefanescu
-
-
Constructor Summary
Constructors Constructor Description DirectoryStack()
DirectoryStack(List<File> entries)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
-
addDirectory
public void addDirectory(File dir) throws IOException
- Throws:
IOException
-
getFile
public File getFile(String name) throws IOException
Gets the file given its name in this virtual directory.The canonical file is returned if any file is found
- Parameters:
name
- the file name to lookup- Returns:
- the file in the canonical form
- Throws:
IOException
-
listFiles
public File[] listFiles()
-
listFiles
public File[] listFiles(FileFilter filter)
-
-