| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final Map | childExcludes
Excludes of our child directories |
| private final DirectoryEntry | |
| private final Set | excludes
The names of our entries to exclude |
| Access | Constructor and Description |
|---|---|
| public | FilteringDirectoryNode(DirectoryEntry
The Directory to filter directory, Collection<String> The Entries to exclude excludes)Creates a filter round the specified directory, which will exclude entries such as "MyNode" and "MyDir/IgnoreNode". |
| Modifier and Type | Method and Description |
|---|---|
| public DirectoryEntry | createDirectory(String
the name of the new DirectoryEntry name)Implements org. create a new DirectoryEntry |
| public DocumentEntry | createDocument(String
the name of the new DocumentEntry name, InputStream the InputStream from which to create the new
DocumentEntry stream)Implements org. create a new DocumentEntry |
| public DocumentEntry | createDocument(String
the name of the new DocumentEntry name, int the size of the new DocumentEntry size, POIFSWriterListener the writer of the new DocumentEntry writer)Implements org. create a new DocumentEntry; the data will be provided later |
| public boolean | |
| public Iterator | getEntries()
Implements org. get an iterator of the Entry instances contained directly in this instance (in other words, children only; no grandchildren etc.) |
| public Entry | getEntry(String
the name of the Entry to obtain. name)Implements org. get a specified Entry by name, case sensitive |
| public Entry | getEntryCaseInsensitive(String
the name of the Entry to obtain. name)Implements org. get a specified Entry by name, case insensitive |
| public int | getEntryCount()
Implements org. find out how many Entry instances are contained directly within this DirectoryEntry |
| public Set | getEntryNames()
Implements org. get the names of all the Entries contained directly in this instance (in other words, names of children only; no grandchildren etc). |
| public String | |
| public DirectoryEntry | getParent()
Implements org. get this Entry's parent (the DirectoryEntry that owns this Entry). |
| public ClassID | getStorageClsid()
Implements org. Gets the storage clsid of the directory entry |
| public boolean | hasEntry(String name)
Implements org. Checks if entry with specified name present, case sensitive |
| public boolean | hasEntryCaseInsensitive(String name)
Implements org. Checks if entry with specified name present, case sensitive |
| public boolean | isDirectoryEntry()
Implements org. is this a DirectoryEntry? |
| public boolean | isDocumentEntry()
Implements org. is this a DocumentEntry? |
| public boolean | isEmpty()
Implements org. is this DirectoryEntry empty? |
| public Iterator | |
| public boolean | renameTo(String
the new name for this Entry newName)Implements org. Rename this Entry. |
| public void | setStorageClsid(ClassID
storage Class ID clsidStorage)Implements org. Sets the storage clsid for the directory entry |
| public Spliterator | spliterator()
Overrides default java. Creates a |
| private Entry |
| childExcludes | back to summary |
|---|---|
| private final Map<String, List<String>> childExcludes Excludes of our child directories | |
| directory | back to summary |
|---|---|
| private final DirectoryEntry directory | |
| excludes | back to summary |
|---|---|
| private final Set<String> excludes The names of our entries to exclude | |
| FilteringDirectoryNode | back to summary |
|---|---|
| public FilteringDirectoryNode(DirectoryEntry directory, Collection<String> excludes) Creates a filter round the specified directory, which will exclude entries such as "MyNode" and "MyDir/IgnoreNode". The excludes can stretch into children, if they contain a /.
| |
| createDirectory | back to summary |
|---|---|
| public DirectoryEntry createDirectory(String name) throws IOException Implements org. Doc from org. create a new DirectoryEntry
| |
| createDocument | back to summary |
|---|---|
| public DocumentEntry createDocument(String name, InputStream stream) throws IOException Implements org. Doc from org. create a new DocumentEntry
| |
| createDocument | back to summary |
|---|---|
| public DocumentEntry createDocument(String name, int size, POIFSWriterListener writer) throws IOException Implements org. Doc from org. create a new DocumentEntry; the data will be provided later
| |
| delete | back to summary |
|---|---|
| public boolean delete() Implements org. Doc from org. Delete this Entry. This operation should succeed, but there are special circumstances when it will not: If this Entry is the root of the Entry tree, it cannot be deleted, as there is no way to create another one. If this Entry is a directory, it cannot be deleted unless it is empty.
| |
| getEntries | back to summary |
|---|---|
| public Iterator Implements org. Doc from org. get an iterator of the Entry instances contained directly in this instance (in other words, children only; no grandchildren etc.) | |
| getEntry | back to summary |
|---|---|
| public Entry getEntry(String name) throws FileNotFoundException Implements org. Doc from org. get a specified Entry by name, case sensitive
| |
| getEntryCaseInsensitive | back to summary |
|---|---|
| public Entry getEntryCaseInsensitive(String name) throws FileNotFoundException Implements org. Doc from org. get a specified Entry by name, case insensitive
| |
| getEntryCount | back to summary |
|---|---|
| public int getEntryCount() Implements org. Doc from org. find out how many Entry instances are contained directly within this DirectoryEntry
| |
| getEntryNames | back to summary |
|---|---|
| public Set Implements org. Doc from org. get the names of all the Entries contained directly in this instance (in other words, names of children only; no grandchildren etc). | |
| getName | back to summary |
|---|---|
| public String getName() Implements org. Doc from org. get the name of the Entry | |
| getParent | back to summary |
|---|---|
| public DirectoryEntry getParent() Implements org. Doc from org. get this Entry's parent (the DirectoryEntry that owns this Entry). All Entry objects, except the root Entry, has a parent.
| |
| getStorageClsid | back to summary |
|---|---|
| public ClassID getStorageClsid() Implements org. Doc from org. Gets the storage clsid of the directory entry | |
| hasEntry | back to summary |
|---|---|
| public boolean hasEntry(String name) Implements org. Doc from org. Checks if entry with specified name present, case sensitive
| |
| hasEntryCaseInsensitive | back to summary |
|---|---|
| public boolean hasEntryCaseInsensitive(String name) Implements org. Doc from org. Checks if entry with specified name present, case sensitive
| |
| isDirectoryEntry | back to summary |
|---|---|
| public boolean isDirectoryEntry() Implements org. Doc from org. is this a DirectoryEntry?
| |
| isDocumentEntry | back to summary |
|---|---|
| public boolean isDocumentEntry() Implements org. Doc from org. is this a DocumentEntry?
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Implements org. Doc from org. is this DirectoryEntry empty?
| |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. Doc from java. Returns an iterator over elements of type | |
| renameTo | back to summary |
|---|---|
| public boolean renameTo(String newName) Implements org. Doc from org. Rename this Entry. This operation will fail if: There is a sibling Entry (i.e., an Entry whose parent is the same as this Entry's parent) with the same name. This Entry is the root of the Entry tree. Its name is dictated by the Filesystem and many not be changed. | |
| setStorageClsid | back to summary |
|---|---|
| public void setStorageClsid(ClassID clsidStorage) Implements org. Doc from org. Sets the storage clsid for the directory entry | |
| spliterator | back to summary |
|---|---|
| public Spliterator Overrides default java. Doc from java. Creates a
| |
| wrapEntry | back to summary |
|---|---|
| private Entry wrapEntry(Entry entry) | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| private void | |
| public Entry | |
| public void | remove()
Overrides default java. Removes from the underlying collection the last element returned by this iterator (optional operation). |
| next | back to summary |
|---|---|
| private Entry next | |
| parent | back to summary |
|---|---|
| private final Iterator<Entry> parent | |
| FilteringIterator | back to summary |
|---|---|
| private FilteringIterator() | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns
| |
| locateNext | back to summary |
|---|---|
| private void locateNext() | |
| next | back to summary |
|---|---|
| public Entry next() Implements java. Doc from java. Returns the next element in the iteration. | |
| remove | back to summary |
|---|---|
| public void remove() Overrides default java. Doc from java. Removes from the underlying collection the last element returned
by this iterator (optional operation). This method can be called
only once per call to The behavior of an iterator is unspecified if the underlying collection is modified while the iteration is in progress in any way other than by calling this method, unless an overriding class has specified a concurrent modification policy.
The behavior of an iterator is unspecified if this method is called
after a call to the
| |