public interface DirectoryEntry extends Entry, java.lang.Iterable<Entry>
Modifier and Type | Method and Description |
---|---|
DirectoryEntry |
createDirectory(java.lang.String name)
create a new DirectoryEntry
(创建一个新的 DirectoryEntry)
|
DocumentEntry |
createDocument(java.lang.String name, java.io.InputStream stream)
create a new DocumentEntry
(创建一个新的 DocumentEntry)
|
DocumentEntry |
createDocument(java.lang.String name, int size, POIFSWriterListener writer)
create a new DocumentEntry; the data will be provided later
(创建一个新的 DocumentEntry;数据将在稍后提供)
|
java.util.Iterator<Entry> |
getEntries()
get an iterator of the Entry instances contained directly in this instance (in other words, children only; no grandchildren etc.)
(获取直接包含在此实例中的 Entry 实例的迭代器(换句话说,仅限子代;无孙代等))
|
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
(找出这个 DirectoryEntry 中直接包含了多少个 Entry 实例)
|
java.util.Set<java.lang.String> |
getEntryNames()
get the names of all the Entries contained directly in this instance (in other words, names of children only; no grandchildren etc).
(获取此实例中直接包含的所有条目的名称(换句话说,只有孩子的名字;没有孙子等)。)
|
ClassID |
getStorageClsid()
Gets the storage clsid of the directory entry
(获取目录条目的存储 clsid)
|
boolean |
hasEntry(java.lang.String name)
Checks if entry with specified name present
(检查是否存在具有指定名称的条目)
|
boolean |
isEmpty()
is this DirectoryEntry empty?
(这个 DirectoryEntry 是空的吗?)
|
void |
setStorageClsid(ClassID clsidStorage)
Sets the storage clsid for the directory entry
(设置目录条目的存储 clsid)
|
delete, getName, getParent, isDirectoryEntry, isDocumentEntry, renameTo
java.util.Iterator<Entry> getEntries()
java.util.Set<java.lang.String> getEntryNames()
boolean isEmpty()
int getEntryCount()
boolean hasEntry(java.lang.String name)
Entry getEntry(java.lang.String name) throws java.io.FileNotFoundException
name
- the name of the Entry to obtain.
(name - 要获取的条目的名称。)
java.io.FileNotFoundException
- if no Entry with the specified name exists in this DirectoryEntry
(java.io.FileNotFoundException - 如果此 DirectoryEntry 中不存在具有指定名称的条目)
DocumentEntry createDocument(java.lang.String name, java.io.InputStream stream) throws java.io.IOException
name
- the name of the new DocumentEntry
(name - 新 DocumentEntry 的名称)
stream
- the InputStream from which to create the new DocumentEntry
(stream - 从中创建新 DocumentEntry 的 InputStream)
java.io.IOException
(java.io.IOException)
DocumentEntry createDocument(java.lang.String name, int size, POIFSWriterListener writer) throws java.io.IOException
name
- the name of the new DocumentEntry
(name - 新 DocumentEntry 的名称)
size
- the size of the new DocumentEntry
(size - 新 DocumentEntry 的大小)
writer
- the writer of the new DocumentEntry
(writer - 新 DocumentEntry 的作者)
java.io.IOException
(java.io.IOException)
DirectoryEntry createDirectory(java.lang.String name) throws java.io.IOException
name
- the name of the new DirectoryEntry
(name - 新 DirectoryEntry 的名称)
java.io.IOException
(java.io.IOException)
ClassID getStorageClsid()
void setStorageClsid(ClassID clsidStorage)
clsidStorage
- storage Class ID
(clsidStorage - 存储类 ID)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.