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
public class DocumentProperty extends Property
Trivial extension of Property for POIFSDocuments
-
-
Constructor Summary
Constructors Constructor Description DocumentProperty(java.lang.String name, int size)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description POIFSDocumentgetDocument()get the POIFSDocumentbooleanisDirectory()voidsetDocument(POIFSDocument doc)set the POIFSDocumentbooleanshouldUseSmallBlocks()give method more visibilityvoidupdateSize(int size)Update the size of the property's data-
Methods 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
-
-
-
-
Method Detail
-
setDocument
public void setDocument(POIFSDocument doc)
set the POIFSDocument- Parameters:
doc- the associated POIFSDocument
-
getDocument
public 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
-
-