Save This Page
Home » poi-src-3.2-FINAL-20081019 » org.apache.poi.poifs » filesystem » [javadoc | source]
org.apache.poi.poifs.filesystem
public interface: DirectoryEntry [javadoc | source]

All Implemented Interfaces:
    Entry

All Known Implementing Classes:
    DirectoryNode

This interface defines methods specific to Directory objects managed by a Filesystem instance.
Method from org.apache.poi.poifs.filesystem.DirectoryEntry Summary:
createDirectory,   createDocument,   createDocument,   getEntries,   getEntry,   getEntryCount,   getStorageClsid,   isEmpty,   setStorageClsid
Method from org.apache.poi.poifs.filesystem.DirectoryEntry Detail:
 public DirectoryEntry createDirectory(String name) throws IOException
    create a new DirectoryEntry
 public DocumentEntry createDocument(String name,
    InputStream stream) throws IOException
    create a new DocumentEntry
 public DocumentEntry createDocument(String name,
    int size,
    POIFSWriterListener writer) throws IOException
    create a new DocumentEntry; the data will be provided later
 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
 public ClassID getStorageClsid()
    Gets the storage clsid of the directory entry
 public boolean isEmpty()
    is this DirectoryEntry empty?
 public  void setStorageClsid(ClassID clsidStorage)
    Sets the storage clsid for the directory entry