public class DirectoryNode extends EntryNode implements DirectoryEntry, POIFSViewable
| Modifier and Type | Method and Description |
|---|---|
DirectoryEntry |
createDirectory(java.lang.String name)
create a new DirectoryEntry
|
DocumentEntry |
createDocument(java.lang.String name,
int size,
POIFSWriterListener writer)
create a new DocumentEntry; the data will be provided later
|
DocumentEntry |
createDocument(java.lang.String name,
RandomAccessInputStream stream)
create a new DocumentEntry
|
java.util.Iterator |
getEntries()
get an iterator of the Entry instances contained directly in
this instance (in other words, children only; no grandchildren
etc.)
|
Entry |
getEntry(java.lang.String name)
get a specified Entry by name
|
int |
getEntryCount()
find out how many Entry instances are contained directly within
this DirectoryEntry
|
POIFSDocumentPath |
getPath() |
java.lang.String |
getShortDescription()
Provides a short description of the object, to be used when a
POIFSViewable object has not provided its contents.
|
ClassID |
getStorageClsid()
Gets the storage clsid of the directory entry
|
java.lang.Object[] |
getViewableArray()
Get an array of objects, some of which may implement
POIFSViewable
|
java.util.Iterator |
getViewableIterator()
Get an Iterator of objects, some of which may implement
POIFSViewable
|
protected boolean |
isDeleteOK()
extensions use this method to verify internal rules regarding
deletion of the underlying store.
|
boolean |
isDirectoryEntry()
is this a DirectoryEntry?
|
boolean |
isEmpty()
is this DirectoryEntry empty?
|
boolean |
preferArray()
Give viewers a hint as to whether to call getViewableArray or
getViewableIterator
|
void |
setStorageClsid(ClassID clsidStorage)
Sets the storage clsid for the directory entry
|
delete, getName, getParent, getProperty, isDocumentEntry, isRoot, renameTopublic POIFSDocumentPath getPath()
public java.util.Iterator getEntries()
getEntries in interface DirectoryEntrypublic boolean isEmpty()
isEmpty in interface DirectoryEntrypublic int getEntryCount()
getEntryCount in interface DirectoryEntrypublic Entry getEntry(java.lang.String name) throws java.io.FileNotFoundException
getEntry in interface DirectoryEntryname - the name of the Entry to obtain.java.io.FileNotFoundException - if no Entry with the specified
name exists in this DirectoryEntrypublic DocumentEntry createDocument(java.lang.String name, RandomAccessInputStream stream) throws java.io.IOException
createDocument in interface DirectoryEntryname - the name of the new DocumentEntrystream - the InputStream from which to create the new
DocumentEntryjava.io.IOExceptionpublic DocumentEntry createDocument(java.lang.String name, int size, POIFSWriterListener writer) throws java.io.IOException
createDocument in interface DirectoryEntryname - the name of the new DocumentEntrysize - the size of the new DocumentEntrywriter - the writer of the new DocumentEntryjava.io.IOExceptionpublic DirectoryEntry createDirectory(java.lang.String name) throws java.io.IOException
createDirectory in interface DirectoryEntryname - the name of the new DirectoryEntryjava.io.IOExceptionpublic ClassID getStorageClsid()
getStorageClsid in interface DirectoryEntrypublic void setStorageClsid(ClassID clsidStorage)
setStorageClsid in interface DirectoryEntryclsidStorage - storage Class IDpublic boolean isDirectoryEntry()
isDirectoryEntry in interface EntryisDirectoryEntry in class EntryNodeprotected boolean isDeleteOK()
isDeleteOK in class EntryNodepublic java.lang.Object[] getViewableArray()
getViewableArray in interface POIFSViewablepublic java.util.Iterator getViewableIterator()
getViewableIterator in interface POIFSViewablepublic boolean preferArray()
preferArray in interface POIFSViewablepublic java.lang.String getShortDescription()
getShortDescription in interface POIFSViewableCopyright © 2014 Open Microscopy Environment