Save This Page
Home » cocoon-2.1.11-src » org.apache.cocoon.poi.poifs » filesystem » [javadoc | source]
org.apache.cocoon.poi.poifs.filesystem
public class: DirectoryNode [javadoc | source]
java.lang.Object
   org.apache.cocoon.poi.poifs.filesystem.EntryNode
      org.apache.cocoon.poi.poifs.filesystem.DirectoryNode

All Implemented Interfaces:
    DirectoryEntry, Entry

Simple implementation of DirectoryEntry
Constructor:
 DirectoryNode(DirectoryProperty property,
    Filesystem filesystem,
    DirectoryNode parent) 
    create a DirectoryNode. This method is not public by design; it is intended strictly for the internal use of this package
    Parameters:
    property - the DirectoryProperty for this DirectoryEntry
    filesystem -
    parent - the parent of this entry
Method from org.apache.cocoon.poi.poifs.filesystem.DirectoryNode Summary:
changeName,   createDirectory,   createDocument,   createDocument,   deleteEntry,   getEntries,   getEntry,   getEntryCount,   isDeleteOK,   isDirectoryEntry,   isEmpty
Methods from org.apache.cocoon.poi.poifs.filesystem.EntryNode:
delete,   getName,   getParent,   getProperty,   isDeleteOK,   isDirectoryEntry,   isDocumentEntry,   isRoot,   renameTo
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.cocoon.poi.poifs.filesystem.DirectoryNode Detail:
 boolean changeName(String oldName,
    String newName) 
    Change a contained Entry's name
 public DirectoryEntry createDirectory(String name) throws IOException 
    create a new DirectoryEntry
 DocumentEntry createDocument(Document document) throws IOException 
    create a new DocumentEntry
 public DocumentEntry createDocument(String name,
    InputStream stream) throws IOException 
    create a new DocumentEntry
 boolean deleteEntry(EntryNode entry) 
    Delete an entry
 public Iterator getEntries() 
    get an iterator of the Entry instances contained directly in this instance (in other words, children only; no grandchildren etc.)
 public Entry getEntry(String name) throws FileNotFoundException 
    get a specified Entry by name
 public int getEntryCount() 
    find out how many Entry instances are contained directly within this DirectoryEntry
 protected boolean isDeleteOK() 
    extensions use this method to verify internal rules regarding deletion of the underlying store.
 public boolean isDirectoryEntry() 
    is this a DirectoryEntry?
 public boolean isEmpty() 
    is this DirectoryEntry empty?