public class DocumentNode extends EntryNode implements DocumentEntry, POIFSViewable
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getShortDescription()
Provides a short description of the object, to be used when a POIFSViewable object has not provided its contents.
(提供对象的简短描述,在 POIFSViewable 对象未提供其内容时使用。)
|
int |
getSize()
get the zize of the document, in bytes
(获取文档的大小,以字节为单位)
|
java.lang.Object[] |
getViewableArray()
Get an array of objects, some of which may implement POIFSViewable
(获取对象数组,其中一些可能实现 POIFSViewable)
|
java.util.Iterator<java.lang.Object> |
getViewableIterator()
Get an Iterator of objects, some of which may implement POIFSViewable
(获取对象的Iterator,其中一些可能实现POIFSViewable)
|
protected boolean |
isDeleteOK()
extensions use this method to verify internal rules regarding deletion of the underlying store.
(扩展使用此方法来验证有关删除底层存储的内部规则。)
|
boolean |
isDocumentEntry()
is this a DocumentEntry?
(这是一个 DocumentEntry 吗?)
|
boolean |
preferArray()
Give viewers a hint as to whether to call getViewableArray or getViewableIterator
(提示查看者是否调用 getViewableArray 或 getViewableIterator)
|
delete, getName, getParent, getProperty, isDirectoryEntry, isRoot, renameTo
public int getSize()
getSize
in interface
DocumentEntry
(接口 DocumentEntry 中的 getSize)
public boolean isDocumentEntry()
isDocumentEntry
in interface
Entry
(接口Entry中的isDocumentEntry)
isDocumentEntry
in class
EntryNode
protected boolean isDeleteOK()
isDeleteOK
in class
EntryNode
(类 EntryNode 中的 isDeleteOK)
public java.lang.Object[] getViewableArray()
getViewableArray
in interface
POIFSViewable
(接口 POIFSViewable 中的 getViewableArray)
public java.util.Iterator<java.lang.Object> getViewableIterator()
getViewableIterator
in interface
POIFSViewable
(接口 POIFSViewable 中的 getViewableIterator)
public boolean preferArray()
preferArray
in interface
POIFSViewable
(接口 POIFSViewable 中的 preferArray)
public java.lang.String getShortDescription()
getShortDescription
in interface
POIFSViewable
(接口 POIFSViewable 中的 getShortDescription)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.