public class PropertyBlock extends BigBlock
Modifier and Type | Field and Description |
---|---|
private Property[] |
_properties |
private int |
_properties_per_block |
private int |
blockSize |
Modifier | Constructor and Description |
---|---|
private |
PropertyBlock(Property[] properties,
int offset,
int blockSize)
Create a single instance initialized with default values
|
Modifier and Type | Method and Description |
---|---|
static 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
shortfall
|
int |
getBigBlockSize() |
(package private) void |
writeData(OutputStream stream)
Write the block's data to an OutputStream
|
doWriteData, writeBlocks
private Property[] _properties
private int _properties_per_block
private int blockSize
private PropertyBlock(Property[] properties, int offset, int blockSize)
properties
- the properties to be insertedoffset
- the offset into the properties arrayblockSize
- size of a big blockpublic int getBigBlockSize()
getBigBlockSize
in class BigBlock
public static BlockWritable[] createPropertyBlockArray(List properties, int size)
properties
- the Property instances to be converted into
PropertyBlocks, in a java Listvoid writeData(OutputStream stream) throws IOException
writeData
in class BigBlock
stream
- the OutputStream to which the stored data should
be writtenIOException
- on problems writing to the specified
streamCopyright © 2016 Open Microscopy Environment