Package org.apache.poi.poifs.property
Class DocumentProperty
java.lang.Object
org.apache.poi.poifs.property.Property
org.apache.poi.poifs.property.DocumentProperty
- All Implemented Interfaces:
POIFSViewable,Child
Trivial extension of Property for POIFSDocuments
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget the POIFSDocumentbooleanvoidsetDocument(POIFSDocument doc) set the POIFSDocumentbooleangive method more visibilityvoidupdateSize(int size) Update the size of the property's dataMethods inherited from class org.apache.poi.poifs.property.Property
getName, getNextChild, getPreviousChild, getShortDescription, getSize, getStartBlock, getStorageClsid, getViewableArray, getViewableIterator, isSmall, preferArray, setNextChild, setPreviousChild, setStartBlock, setStorageClsid, writeData
-
Constructor Details
-
DocumentProperty
Constructor- Parameters:
name- POIFSDocument namesize- POIFSDocument size
-
-
Method Details
-
setDocument
set the POIFSDocument- Parameters:
doc- the associated POIFSDocument
-
getDocument
get the POIFSDocument- Returns:
- the associated document
-
shouldUseSmallBlocks
public boolean shouldUseSmallBlocks()give method more visibility- Overrides:
shouldUseSmallBlocksin classProperty- Returns:
- true if this property should use small blocks
-
isDirectory
public boolean isDirectory()- Specified by:
isDirectoryin classProperty- Returns:
- true if a directory type Property
-
updateSize
public void updateSize(int size) Update the size of the property's data
-