public class DocumentProperty extends Property
_NO_INDEX, _NODE_BLACK, _NODE_RED
Modifier | Constructor and Description |
---|---|
protected |
DocumentProperty(int index, byte[] array, int offset)
reader constructor
(阅读器构造函数)
|
|
DocumentProperty(java.lang.String name, int size)
Constructor
(构造函数)
|
Modifier and Type | Method and Description |
---|---|
POIFSDocument |
getDocument()
get the POIFSDocument
(获取 POIFSDocument)
|
boolean |
isDirectory() |
protected void |
preWrite()
Perform whatever activities need to be performed prior to writing
(在写作之前执行任何需要执行的活动)
|
void |
setDocument(POIFSDocument doc)
set the POIFSDocument
(设置 POIFSDocument)
|
boolean |
shouldUseSmallBlocks()
give method more visibility
(给方法更多的可见性)
|
void |
updateSize(int size)
Update the size of the property's data
(更新属性数据的大小)
|
getChildIndex, getIndex, getName, getNextChild, getPreviousChild, getShortDescription, getSize, getStartBlock, getStorageClsid, getViewableArray, getViewableIterator, isSmall, preferArray, setChildProperty, setIndex, setName, setNextChild, setNodeColor, setPreviousChild, setPropertyType, setSize, setStartBlock, setStorageClsid, writeData
public DocumentProperty(java.lang.String name, int size)
name
- POIFSDocument name
(名称 - POIFS 文档名称)
size
- POIFSDocument size
(size - POIFS文档大小)
protected DocumentProperty(int index, byte[] array, int offset)
index
- index number
(index - 索引号)
array
- byte data
(数组 - 字节数据)
offset
- offset into byte data
(offset - 字节数据的偏移量)
public void setDocument(POIFSDocument doc)
doc
- the associated POIFSDocument
(doc - 相关的 POIFSDocument)
public POIFSDocument getDocument()
public boolean shouldUseSmallBlocks()
shouldUseSmallBlocks
in class
Property
public boolean isDirectory()
isDirectory
in class
Property
(类属性中的 isDirectory)
protected void preWrite()
public void updateSize(int size)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.