Package loci.poi.poifs.storage
Class PropertyBlock
java.lang.Object
loci.poi.poifs.storage.PropertyBlock
- All Implemented Interfaces:
BlockWritable
A block of Property instances
- Author:
- Marc Johnson (mjohnson at apache dot org)
-
Method Summary
Modifier and TypeMethodDescriptionstatic BlockWritable[]createPropertyBlockArray(List properties, int size) Create an array of PropertyBlocks from an array of Property instances, creating empty Property instances to make up any shortfallprotected voiddoWriteData(OutputStream stream, byte[] data) Default implementation of write for extending classes that contain their data in a simple array of bytes.intvoidwriteBlocks(OutputStream stream) Write the storage to an OutputStream
-
Method Details
-
getBigBlockSize
public int getBigBlockSize() -
createPropertyBlockArray
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
-
doWriteData
Default implementation of write for extending classes that contain their data in a simple array of bytes.- Parameters:
stream- the OutputStream to which the data should be written.data- the byte array of to be written.- Throws:
IOException- on problems writing to the specified stream.
-
writeBlocks
Write the storage to an OutputStream- Specified by:
writeBlocksin interfaceBlockWritable- Parameters:
stream- the OutputStream to which the stored data should be written- Throws:
IOException- on problems writing to the specified stream
-