abstract class BigBlock extends Object implements BlockWritable
Constructor and Description |
---|
BigBlock() |
Modifier and Type | Method and Description |
---|---|
protected void |
doWriteData(OutputStream stream,
byte[] data)
Default implementation of write for extending classes that
contain their data in a simple array of bytes.
|
(package private) abstract int |
getBigBlockSize() |
void |
writeBlocks(OutputStream stream)
Write the storage to an OutputStream
|
(package private) abstract void |
writeData(OutputStream stream)
Write the block's data to an OutputStream
|
protected 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.abstract void writeData(OutputStream stream) throws IOException
stream
- the OutputStream to which the stored data should
be writtenIOException
- on problems writing to the specified
streampublic 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
streamabstract int getBigBlockSize()
Copyright © 2015 Open Microscopy Environment