Class PropertyBlock
java.lang.Object
org.docx4j.org.apache.poi.poifs.storage.BigBlock
org.docx4j.org.apache.poi.poifs.storage.PropertyBlock
- All Implemented Interfaces:
BlockWritable
A block of Property instances
-
Field Summary
FieldsFields inherited from class org.docx4j.org.apache.poi.poifs.storage.BigBlock
bigBlockSize -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivatePropertyBlock(POIFSBigBlockSize bigBlockSize, Property[] properties, int offset) Create a single instance initialized with default values -
Method Summary
Modifier and TypeMethodDescriptionstatic BlockWritable[]createPropertyBlockArray(POIFSBigBlockSize bigBlockSize, List<Property> properties) Create an array of PropertyBlocks from an array of Property instances, creating empty Property instances to make up any shortfall(package private) voidwriteData(OutputStream stream) Write the block's data to an OutputStreamMethods inherited from class org.docx4j.org.apache.poi.poifs.storage.BigBlock
doWriteData, writeBlocks
-
Field Details
-
_properties
-
-
Constructor Details
-
PropertyBlock
Create a single instance initialized with default values- Parameters:
properties- the properties to be insertedoffset- the offset into the properties array
-
-
Method Details
-
createPropertyBlockArray
public static BlockWritable[] createPropertyBlockArray(POIFSBigBlockSize bigBlockSize, List<Property> properties) Create an array of PropertyBlocks from an array of Property instances, creating empty Property instances to make up any shortfall- Parameters:
properties- the Property instances to be converted into PropertyBlocks, in a java List- Returns:
- the array of newly created PropertyBlock instances
-
writeData
Write the block's data to an OutputStream- Specified by:
writeDatain classBigBlock- Parameters:
stream- the OutputStream to which the stored data should be written- Throws:
IOException- on problems writing to the specified stream
-