org.nuxeo.ecm.webengine.util
Class DirectoryStack
java.lang.Object
org.nuxeo.ecm.webengine.util.DirectoryStack
public class DirectoryStack
- extends java.lang.Object
- Author:
- Bogdan Stefanescu
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DirectoryStack
public DirectoryStack()
DirectoryStack
public DirectoryStack(java.util.List<DirectoryStack.Entry> entries)
getEntries
public java.util.List<DirectoryStack.Entry> getEntries()
isEmpty
public boolean isEmpty()
addDirectory
public void addDirectory(java.io.File dir,
int priority)
throws java.io.IOException
- Throws:
java.io.IOException
getFile
public java.io.File getFile(java.lang.String name)
throws java.io.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:
java.io.IOException
listFiles
public java.io.File[] listFiles()
listFiles
public java.io.File[] listFiles(java.io.FileFilter filter)
main
public static void main(java.lang.String[] args)
Copyright © 2010 Nuxeo SAS. All Rights Reserved.