Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.webengine.util
Class DirectoryStack

java.lang.Object
  extended by org.nuxeo.ecm.webengine.util.DirectoryStack

public class DirectoryStack
extends java.lang.Object

Author:
Bogdan Stefanescu

Nested Class Summary
static class DirectoryStack.Entry
           
 
Constructor Summary
DirectoryStack()
           
DirectoryStack(java.util.List<DirectoryStack.Entry> entries)
           
 
Method Summary
 void addDirectory(java.io.File dir, int priority)
           
 java.util.List<DirectoryStack.Entry> getEntries()
           
 java.io.File getFile(java.lang.String name)
          Gets the file given its name in this virtual directory.
 boolean isEmpty()
           
 java.io.File[] listFiles()
           
 java.io.File[] listFiles(java.io.FileFilter filter)
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectoryStack

public DirectoryStack()

DirectoryStack

public DirectoryStack(java.util.List<DirectoryStack.Entry> entries)
Method Detail

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)

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.