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
- 
- 
Field Summary- 
Fields inherited from class org.apache.poi.poifs.property.Property_NO_INDEX, _NODE_BLACK, _NODE_RED
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedDocumentProperty(int index, byte[] array, int offset)reader constructorDocumentProperty(String name, int size)Constructor
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description POIFSDocumentgetDocument()get the POIFSDocumentbooleanisDirectory()protected voidpreWrite()Perform whatever activities need to be performed prior to writingvoidsetDocument(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.PropertygetChildIndex, getIndex, getName, getNextChild, getPreviousChild, getShortDescription, getSize, getStartBlock, getStorageClsid, getViewableArray, getViewableIterator, isSmall, preferArray, setChildProperty, setIndex, setName, setNextChild, setNodeColor, setPreviousChild, setPropertyType, setSize, setStartBlock, setStorageClsid, writeData
 
- 
 
- 
- 
- 
Constructor Detail- 
DocumentPropertypublic DocumentProperty(String name, int size) Constructor- Parameters:
- name- POIFSDocument name
- size- POIFSDocument size
 
 - 
DocumentPropertyprotected DocumentProperty(int index, byte[] array, int offset)reader constructor- Parameters:
- index- index number
- array- byte data
- offset- offset into byte data
 
 
- 
 - 
Method Detail- 
setDocumentpublic void setDocument(POIFSDocument doc) set the POIFSDocument- Parameters:
- doc- the associated POIFSDocument
 
 - 
getDocumentpublic POIFSDocument getDocument() get the POIFSDocument- Returns:
- the associated document
 
 - 
shouldUseSmallBlockspublic boolean shouldUseSmallBlocks() give method more visibility- Overrides:
- shouldUseSmallBlocksin class- Property
- Returns:
- true if this property should use small blocks
 
 - 
isDirectorypublic boolean isDirectory() - Specified by:
- isDirectoryin class- Property
- Returns:
- true if a directory type Property
 
 - 
preWriteprotected void preWrite() Perform whatever activities need to be performed prior to writing
 - 
updateSizepublic void updateSize(int size) Update the size of the property's data
 
- 
 
-