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
|
boolean |
isDirectory() |
protected void |
preWrite()
Perform whatever activities need to be performed prior to
writing
|
void |
setDocument(POIFSDocument doc)
set the 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 namesize
- POIFSDocument sizeprotected DocumentProperty(int index, byte[] array, int offset)
index
- index numberarray
- byte dataoffset
- offset into byte datapublic void setDocument(POIFSDocument doc)
doc
- the associated POIFSDocumentpublic POIFSDocument getDocument()
public boolean shouldUseSmallBlocks()
shouldUseSmallBlocks
in class Property
public boolean isDirectory()
isDirectory
in class Property
protected void preWrite()
public void updateSize(int size)
Copyright 2020 The Apache Software Foundation or its licensors, as applicable.