public class HDF5OpaqueWriter extends HDF5OpaqueReader implements IHDF5OpaqueWriter
IHDF5OpaqueWriter
.Modifier and Type | Method and Description |
---|---|
HDF5OpaqueType |
createArray(java.lang.String objectPath,
java.lang.String tag,
int size)
Creates an opaque data set that will be represented as a
byte array (of rank 1). |
HDF5OpaqueType |
createArray(java.lang.String objectPath,
java.lang.String tag,
int size,
HDF5GenericStorageFeatures features)
Creates an opaque data set that will be represented as a
byte array (of rank 1). |
HDF5OpaqueType |
createArray(java.lang.String objectPath,
java.lang.String tag,
long size,
int blockSize)
Creates an opaque data set that will be represented as a
byte array (of rank 1). |
HDF5OpaqueType |
createArray(java.lang.String objectPath,
java.lang.String tag,
long size,
int blockSize,
HDF5GenericStorageFeatures features)
Creates an opaque data set that will be represented as a
byte array (of rank 1). |
void |
writeArray(java.lang.String objectPath,
java.lang.String tag,
byte[] data)
Writes out an opaque data type described by tag and defined by a
byte
array (of rank 1). |
void |
writeArray(java.lang.String objectPath,
java.lang.String tag,
byte[] data,
HDF5GenericStorageFeatures features)
Writes out an opaque data type described by tag and defined by a
byte
array (of rank 1). |
void |
writeArrayBlock(java.lang.String objectPath,
HDF5OpaqueType dataType,
byte[] data,
long blockNumber)
Writes out a block of an opaque data type represented by a
byte array (of rank
1). |
void |
writeArrayBlockWithOffset(java.lang.String objectPath,
HDF5OpaqueType dataType,
byte[] data,
int dataSize,
long offset)
Writes out a block of an opaque data type represented by a
byte array (of rank
1). |
getArrayAttr, getArrayNaturalBlocks, readArray, readArrayBlock, readArrayBlockWithOffset, readArrayToBlockWithOffset, tryGetOpaqueTag, tryGetOpaqueType
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getArrayAttr, getArrayNaturalBlocks, readArray, readArrayBlock, readArrayBlockWithOffset, readArrayToBlockWithOffset, tryGetOpaqueTag, tryGetOpaqueType
public void writeArray(java.lang.String objectPath, java.lang.String tag, byte[] data)
IHDF5OpaqueWriter
byte
array (of rank 1).
Note that there is no dedicated method for reading opaque types. Use the method
IHDF5OpaqueReader.readArray(String)
instead.
writeArray
in interface IHDF5OpaqueWriter
objectPath
- The name (including path information) of the data set object in the file.tag
- The tag of the data set.data
- The data to write. Must not be null
.public void writeArray(java.lang.String objectPath, java.lang.String tag, byte[] data, HDF5GenericStorageFeatures features)
IHDF5OpaqueWriter
byte
array (of rank 1).
Note that there is no dedicated method for reading opaque types. Use the method
IHDF5OpaqueReader.readArray(String)
instead.
writeArray
in interface IHDF5OpaqueWriter
objectPath
- The name (including path information) of the data set object in the file.tag
- The tag of the data set.data
- The data to write. Must not be null
.features
- The storage features of the data set.public HDF5OpaqueType createArray(java.lang.String objectPath, java.lang.String tag, int size)
IHDF5OpaqueWriter
byte
array (of rank 1).createArray
in interface IHDF5OpaqueWriter
objectPath
- The name (including path information) of the data set object in the file.size
- The size of the byte array to create. This will be the total size for
non-extendable data sets and the size of one chunk for extendable (chunked) data
sets. For extendable data sets the initial size of the array will be 0, see
IHDF5WriterConfigurator.dontUseExtendableDataTypes()
.HDF5OpaqueType
that can be used in methods
IHDF5OpaqueWriter.writeArrayBlock(String, HDF5OpaqueType, byte[], long)
and
IHDF5OpaqueWriter.writeArrayBlockWithOffset(String, HDF5OpaqueType, byte[], int, long)
to represent this opaque type.public HDF5OpaqueType createArray(java.lang.String objectPath, java.lang.String tag, long size, int blockSize)
IHDF5OpaqueWriter
byte
array (of rank 1).createArray
in interface IHDF5OpaqueWriter
objectPath
- The name (including path information) of the data set object in the file.size
- The size of the byte array to create.blockSize
- The size of on block (for block-wise IO)HDF5OpaqueType
that can be used in methods
IHDF5OpaqueWriter.writeArrayBlock(String, HDF5OpaqueType, byte[], long)
and
IHDF5OpaqueWriter.writeArrayBlockWithOffset(String, HDF5OpaqueType, byte[], int, long)
to represent this opaque type.public HDF5OpaqueType createArray(java.lang.String objectPath, java.lang.String tag, int size, HDF5GenericStorageFeatures features)
IHDF5OpaqueWriter
byte
array (of rank 1).createArray
in interface IHDF5OpaqueWriter
objectPath
- The name (including path information) of the data set object in the file.size
- The size of the byte array to create. This will be the total size for
non-extendable data sets and the size of one chunk for extendable (chunked) data
sets. For extendable data sets the initial size of the array will be 0, see
HDF5GenericStorageFeatures
.features
- The storage features of the data set.HDF5OpaqueType
that can be used in methods
IHDF5OpaqueWriter.writeArrayBlock(String, HDF5OpaqueType, byte[], long)
and
IHDF5OpaqueWriter.writeArrayBlockWithOffset(String, HDF5OpaqueType, byte[], int, long)
to represent this opaque type.public HDF5OpaqueType createArray(java.lang.String objectPath, java.lang.String tag, long size, int blockSize, HDF5GenericStorageFeatures features)
IHDF5OpaqueWriter
byte
array (of rank 1).createArray
in interface IHDF5OpaqueWriter
objectPath
- The name (including path information) of the data set object in the file.size
- The size of the byte array to create.blockSize
- The size of on block (for block-wise IO)features
- The storage features of the data set.HDF5OpaqueType
that can be used in methods
IHDF5OpaqueWriter.writeArrayBlock(String, HDF5OpaqueType, byte[], long)
and
IHDF5OpaqueWriter.writeArrayBlockWithOffset(String, HDF5OpaqueType, byte[], int, long)
to represent this opaque type.public void writeArrayBlock(java.lang.String objectPath, HDF5OpaqueType dataType, byte[] data, long blockNumber)
IHDF5OpaqueWriter
byte
array (of rank
1). The data set needs to have been created by
IHDF5OpaqueWriter.createArray(String, String, long, int, HDF5GenericStorageFeatures)
beforehand.
Note: For best performance, the block size in this method should be chosen to be equal
to the blockSize argument of the
IHDF5OpaqueWriter.createArray(String, String, long, int, HDF5GenericStorageFeatures)
call
that was used to created the data set.
Note that there is no dedicated method for reading opaque types. Use the method
IHDF5OpaqueReader.readArrayBlock(String, int, long)
instead.
writeArrayBlock
in interface IHDF5OpaqueWriter
objectPath
- The name (including path information) of the data set object in the file.data
- The data to write. The length defines the block size. Must not be
null
or of length 0.blockNumber
- The number of the block to write.public void writeArrayBlockWithOffset(java.lang.String objectPath, HDF5OpaqueType dataType, byte[] data, int dataSize, long offset)
IHDF5OpaqueWriter
byte
array (of rank
1). The data set needs to have been created by
IHDF5OpaqueWriter.createArray(String, String, long, int, HDF5GenericStorageFeatures)
beforehand.
Use this method instead of
IHDF5OpaqueWriter.writeArrayBlock(String, HDF5OpaqueType, byte[], long)
if the total size of
the data set is not a multiple of the block size.
Note: For best performance, the dataSize in this method should be
chosen to be equal to the blockSize argument of the
IHDF5OpaqueWriter.createArray(String, String, long, int, HDF5GenericStorageFeatures)
call
that was used to created the data set.
Note that there is no dedicated method for reading opaque types. Use the method
IHDF5OpaqueReader.readArrayBlockWithOffset(String, int, long)
instead.
writeArrayBlockWithOffset
in interface IHDF5OpaqueWriter
objectPath
- The name (including path information) of the data set object in the file.data
- The data to write. The length defines the block size. Must not be
null
or of length 0.dataSize
- The (real) size of data
(needs to be <= data.length
)offset
- The offset in the data set to start writing to.