public interface IHDF5OpaqueReader
Obtain an object implementing this interface by calling IHDF5Reader.opaque().
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getArrayAttr(java.lang.String objectPath,
java.lang.String attributeName)
Gets the byte array values of an attribute attributeName of object
objectPath.
|
java.lang.Iterable<HDF5DataBlock<byte[]>> |
getArrayNaturalBlocks(java.lang.String dataSetPath)
Provides all natural blocks of this one-dimensional data set to iterate over.
|
byte[] |
readArray(java.lang.String objectPath)
Reads the data set objectPath as byte array.
|
byte[] |
readArrayBlock(java.lang.String objectPath,
int blockSize,
long blockNumber)
Reads a block from data set objectPath as byte array.
|
byte[] |
readArrayBlockWithOffset(java.lang.String objectPath,
int blockSize,
long offset)
Reads a block from data set objectPath as byte array.
|
int |
readArrayToBlockWithOffset(java.lang.String objectPath,
byte[] buffer,
int blockSize,
long offset,
int memoryOffset)
Reads a block from data set objectPath as byte array into buffer.
|
java.lang.String |
tryGetOpaqueTag(java.lang.String objectPath)
Returns the tag of the opaque data type associated with objectPath, or
null, if objectPath is not of an opaque data type (i.e. |
HDF5OpaqueType |
tryGetOpaqueType(java.lang.String objectPath)
Returns the opaque data type or
null, if objectPath is not of such a
data type. |
java.lang.String tryGetOpaqueTag(java.lang.String objectPath)
null, if objectPath is not of an opaque data type (i.e. if
reader.getDataSetInformation(objectPath).getTypeInformation().getDataClass() != HDF5DataClass.OPAQUE
).objectPath - The name (including path information) of the data set object in the file.null.HDF5OpaqueType tryGetOpaqueType(java.lang.String objectPath)
null, if objectPath is not of such a
data type.objectPath - The name (including path information) of the data set object in the file.null.byte[] getArrayAttr(java.lang.String objectPath,
java.lang.String attributeName)
byte[] readArray(java.lang.String objectPath)
objectPath - The name (including path information) of the data set object in the file.byte[] readArrayBlock(java.lang.String objectPath,
int blockSize,
long blockNumber)
throws HDF5JavaException
objectPath - The name (including path information) of the data set object in the file.blockSize - The block size in numbers of elements (this will be the length of the
byte[] returned, divided by the size of one element).blockNumber - The number of the block to read (starting with 0, offset: multiply with
blockSize).HDF5JavaException - If the data set is not of rank 1 or is a String.byte[] readArrayBlockWithOffset(java.lang.String objectPath,
int blockSize,
long offset)
throws HDF5JavaException
objectPath - The name (including path information) of the data set object in the file.blockSize - The block size in numbers of elements (this will be the length of the
byte[] returned, divided by the size of one element).offset - The offset of the block to read as number of elements (starting with 0).HDF5JavaException - If the data set is not of rank 1.int readArrayToBlockWithOffset(java.lang.String objectPath,
byte[] buffer,
int blockSize,
long offset,
int memoryOffset)
throws HDF5JavaException
objectPath - The name (including path information) of the data set object in the file.buffer - The buffer to read the values in.blockSize - The block size in numbers of elements (this will be the length of the
byte[] returned, divided by the size of one element).offset - The offset of the block in the data set as number of elements (zero-based).memoryOffset - The offset of the block in buffer as number of elements
(zero-based).HDF5JavaException - If the data set is not of rank 1.java.lang.Iterable<HDF5DataBlock<byte[]>> getArrayNaturalBlocks(java.lang.String dataSetPath) throws HDF5JavaException
HDF5JavaException - If the data set is not of rank 1.HDF5DataBlock