public interface DirectoryEntry extends Entry, Iterable<Entry>
Modifier and Type | Method and Description |
---|---|
DirectoryEntry |
createDirectory(String name)
create a new DirectoryEntry
|
DocumentEntry |
createDocument(String name,
InputStream stream)
create a new DocumentEntry
|
DocumentEntry |
createDocument(String name,
int size,
POIFSWriterListener writer)
create a new DocumentEntry; the data will be provided later
|
Iterator<Entry> |
getEntries()
get an iterator of the Entry instances contained directly in
this instance (in other words, children only; no grandchildren
etc.)
|
Entry |
getEntry(String name)
get a specified Entry by name
|
int |
getEntryCount()
find out how many Entry instances are contained directly within
this DirectoryEntry
|
ClassID |
getStorageClsid()
Gets the storage clsid of the directory entry
|
boolean |
hasEntry(String name)
Checks if entry with specified name present
|
boolean |
isEmpty()
is this DirectoryEntry empty?
|
void |
setStorageClsid(ClassID clsidStorage)
Sets the storage clsid for the directory entry
|
delete, getName, getParent, isDirectoryEntry, isDocumentEntry, renameTo
forEach, iterator, spliterator
Iterator<Entry> getEntries()
boolean isEmpty()
int getEntryCount()
boolean hasEntry(String name)
Entry getEntry(String name) throws FileNotFoundException
name
- the name of the Entry to obtain.FileNotFoundException
- if no Entry with the specified
name exists in this DirectoryEntryDocumentEntry createDocument(String name, InputStream stream) throws IOException
name
- the name of the new DocumentEntrystream
- the InputStream from which to create the new
DocumentEntryIOException
DocumentEntry createDocument(String name, int size, POIFSWriterListener writer) throws IOException
name
- the name of the new DocumentEntrysize
- the size of the new DocumentEntrywriter
- the writer of the new DocumentEntryIOException
DirectoryEntry createDirectory(String name) throws IOException
name
- the name of the new DirectoryEntryIOException
ClassID getStorageClsid()
void setStorageClsid(ClassID clsidStorage)
clsidStorage
- storage Class IDCopyright © 2020. All rights reserved.