public final class PropertyBlock extends Object
Modifier and Type | Field and Description |
---|---|
protected POIFSBigBlockSize |
bigBlockSize
Either 512 bytes (
POIFSConstants.SMALLER_BIG_BLOCK_SIZE )
or 4096 bytes (POIFSConstants.LARGER_BIG_BLOCK_SIZE ) |
Modifier and Type | Method and Description |
---|---|
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
|
protected void |
doWriteData(OutputStream stream,
byte[] data)
Default implementation of write for extending classes that
contain their data in a simple array of bytes.
|
void |
writeBlocks(OutputStream stream)
Write the storage to an OutputStream
|
protected POIFSBigBlockSize bigBlockSize
POIFSConstants.SMALLER_BIG_BLOCK_SIZE
)
or 4096 bytes (POIFSConstants.LARGER_BIG_BLOCK_SIZE
)public static BlockWritable[] createPropertyBlockArray(POIFSBigBlockSize bigBlockSize, List<Property> properties)
properties
- the Property instances to be converted into
PropertyBlocks, in a java Listprotected void doWriteData(OutputStream stream, byte[] data) throws IOException
stream
- the OutputStream to which the data should be
written.data
- the byte array of to be written.IOException
- on problems writing to the specified
stream.public void writeBlocks(OutputStream stream) throws IOException
writeBlocks
in interface BlockWritable
stream
- the OutputStream to which the stored data should
be writtenIOException
- on problems writing to the specified
streamCopyright © 2020. All rights reserved.