public class PropertyBlock
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static BlockWritable[] |
createPropertyBlockArray(java.util.List properties,
int size)
Create an array of PropertyBlocks from an array of Property
instances, creating empty Property instances to make up any
shortfall
|
protected void |
doWriteData(java.io.OutputStream stream,
byte[] data)
Default implementation of write for extending classes that
contain their data in a simple array of bytes.
|
int |
getBigBlockSize() |
void |
writeBlocks(java.io.OutputStream stream)
Write the storage to an OutputStream
|
public int getBigBlockSize()
public static BlockWritable[] createPropertyBlockArray(java.util.List properties, int size)
properties
- the Property instances to be converted into
PropertyBlocks, in a java Listprotected void doWriteData(java.io.OutputStream stream, byte[] data) throws java.io.IOException
stream
- the OutputStream to which the data should be
written.data
- the byte array of to be written.java.io.IOException
- on problems writing to the specified
stream.public void writeBlocks(java.io.OutputStream stream) throws java.io.IOException
writeBlocks
in interface BlockWritable
stream
- the OutputStream to which the stored data should
be writtenjava.io.IOException
- on problems writing to the specified
streamCopyright © 2014 Open Microscopy Environment