public interface IHDF5EnumReader extends IHDF5EnumTypeRetriever
Obtain an object implementing this interface by calling IHDF5Reader.enumeration()
.
Modifier and Type | Method and Description |
---|---|
HDF5EnumerationValueArray |
getArrayAttr(java.lang.String objectPath,
java.lang.String attributeName)
Reads an
enum array (of rank 1) attribute named attributeName from
the data set objectPath. |
java.lang.Iterable<HDF5DataBlock<HDF5EnumerationValueArray>> |
getArrayBlocks(java.lang.String objectPath)
Provides all natural blocks of this one-dimensional data set to iterate over.
|
java.lang.Iterable<HDF5DataBlock<HDF5EnumerationValueArray>> |
getArrayBlocks(java.lang.String objectPath,
HDF5EnumerationType enumType)
Provides all natural blocks of this one-dimensional data set to iterate over.
|
HDF5EnumerationValue |
getAttr(java.lang.String objectPath,
java.lang.String attributeName)
Reads an
enum attribute named attributeName from the data set
objectPath. |
<T extends java.lang.Enum<T>> |
getAttr(java.lang.String objectPath,
java.lang.String attributeName,
java.lang.Class<T> enumClass)
Reads an
enum attribute named attributeName from the data set
objectPath. |
java.lang.String |
getAttrAsString(java.lang.String objectPath,
java.lang.String attributeName)
Reads an
enum attribute named attributeName from the data set
objectPath. |
HDF5EnumerationValueMDArray |
getMDArrayAttr(java.lang.String objectPath,
java.lang.String attributeName)
Reads an
enum array (of rank 1) attribute named attributeName from
the data set objectPath. |
java.lang.Iterable<HDF5MDEnumBlock> |
getMDArrayBlocks(java.lang.String objectPath)
Provides all natural blocks of this multi-dimensional data set to iterate over.
|
java.lang.Iterable<HDF5MDEnumBlock> |
getMDArrayBlocks(java.lang.String objectPath,
HDF5EnumerationType type)
Provides all natural blocks of this multi-dimensional data set to iterate over.
|
HDF5EnumerationValue |
read(java.lang.String objectPath)
Reads an
Enum value from the data set objectPath. |
<T extends java.lang.Enum<T>> |
read(java.lang.String objectPath,
java.lang.Class<T> enumClass)
Reads an
Enum value from the data set objectPath. |
HDF5EnumerationValue |
read(java.lang.String objectPath,
HDF5EnumerationType enumType)
Reads an
Enum value from the data set objectPath. |
HDF5EnumerationValueArray |
readArray(java.lang.String objectPath)
Reads an
Enum value array from the data set objectPath. |
HDF5EnumerationValueArray |
readArray(java.lang.String objectPath,
HDF5EnumerationType enumType)
Reads an
Enum value from the data set objectPath. |
HDF5EnumerationValueArray |
readArrayBlock(java.lang.String objectPath,
HDF5EnumerationType enumType,
int blockSize,
long blockNumber)
Reads an
Enum value array block from the data set objectPath. |
HDF5EnumerationValueArray |
readArrayBlock(java.lang.String objectPath,
int blockSize,
long blockNumber)
Reads an
Enum value array block from the data set objectPath. |
HDF5EnumerationValueArray |
readArrayBlockWithOffset(java.lang.String objectPath,
HDF5EnumerationType enumType,
int blockSize,
long offset)
Reads an
Enum value array block from the data set objectPath. |
HDF5EnumerationValueArray |
readArrayBlockWithOffset(java.lang.String objectPath,
int blockSize,
long offset)
Reads an
Enum value array block from the data set objectPath. |
java.lang.String |
readAsString(java.lang.String objectPath)
Reads an
Enum value from the data set objectPath. |
HDF5EnumerationValueMDArray |
readMDArray(java.lang.String objectPath)
Reads an
Enum array (of rank N) from the data set objectPath. |
HDF5EnumerationValueMDArray |
readMDArray(java.lang.String objectPath,
HDF5EnumerationType enumType)
Reads an
Enum array (of rank N) from the data set objectPath. |
HDF5EnumerationValueMDArray |
readMDArrayBlock(java.lang.String objectPath,
HDF5EnumerationType type,
int[] blockDimensions,
long[] blockNumber)
Reads a block from a
Enum array block (of rank N) from the data set
objectPath. |
HDF5EnumerationValueMDArray |
readMDArrayBlock(java.lang.String objectPath,
int[] blockDimensions,
long[] blockNumber)
Reads a block from a
Enum array block (of rank N) from the data set
objectPath. |
HDF5EnumerationValueMDArray |
readMDArrayBlockWithOffset(java.lang.String objectPath,
HDF5EnumerationType type,
int[] blockDimensions,
long[] offset)
Reads a block from a
Enum array block (of rank N) from the data set
objectPath. |
HDF5EnumerationValueMDArray |
readMDArrayBlockWithOffset(java.lang.String objectPath,
int[] blockDimensions,
long[] offset)
Reads a block from a
Enum array block (of rank N) from the data set
objectPath. |
getAttributeType, getDataSetType, getType, getType, getType, getType, getType, getType, getType, getType, getType
java.lang.String getAttrAsString(java.lang.String objectPath, java.lang.String attributeName) throws HDF5JavaException
enum
attribute named attributeName from the data set
objectPath.objectPath
- The name (including path information) of the data set object in the file.attributeName
- The name of the attribute to read.HDF5JavaException
- If the attribute is not an enum type.HDF5EnumerationValue getAttr(java.lang.String objectPath, java.lang.String attributeName) throws HDF5JavaException
enum
attribute named attributeName from the data set
objectPath.objectPath
- The name (including path information) of the data set object in the file.attributeName
- The name of the attribute to read.HDF5JavaException
- If the attribute is not an enum type.<T extends java.lang.Enum<T>> T getAttr(java.lang.String objectPath, java.lang.String attributeName, java.lang.Class<T> enumClass) throws HDF5JavaException
enum
attribute named attributeName from the data set
objectPath.objectPath
- The name (including path information) of the data set object in the file.attributeName
- The name of the attribute to read.enumClass
- the Enum
class to represent the values of.HDF5JavaException
- If the attribute is not an enum type.HDF5EnumerationValueArray getArrayAttr(java.lang.String objectPath, java.lang.String attributeName) throws HDF5JavaException
enum
array (of rank 1) attribute named attributeName from
the data set objectPath.objectPath
- The name (including path information) of the data set object in the file.attributeName
- The name of the attribute to read.HDF5JavaException
- If the attribute is not an enum type.HDF5EnumerationValueMDArray getMDArrayAttr(java.lang.String objectPath, java.lang.String attributeName) throws HDF5JavaException
enum
array (of rank 1) attribute named attributeName from
the data set objectPath.objectPath
- The name (including path information) of the data set object in the file.attributeName
- The name of the attribute to read.HDF5JavaException
- If the attribute is not an enum type.java.lang.String readAsString(java.lang.String objectPath) throws HDF5JavaException
Enum
value from the data set objectPath.objectPath
- The name (including path information) of the data set object in the file.HDF5JavaException
- If the objectPath is not an enum type.HDF5EnumerationValue read(java.lang.String objectPath) throws HDF5JavaException
Enum
value from the data set objectPath.objectPath
- The name (including path information) of the data set object in the file.HDF5JavaException
- If the objectPath is not of enumType.<T extends java.lang.Enum<T>> T read(java.lang.String objectPath, java.lang.Class<T> enumClass) throws HDF5JavaException
Enum
value from the data set objectPath.objectPath
- The name (including path information) of the data set object in the file.enumClass
- the Enum
class to represent the values of.HDF5JavaException
- If the objectPath is not of enumType or if
enumClass is incompatible with the HDF5 enumeration type of
objectPath.HDF5EnumerationValue read(java.lang.String objectPath, HDF5EnumerationType enumType) throws HDF5JavaException
Enum
value from the data set objectPath.
This method is faster than read(String)
if the HDF5EnumerationType
is
already available.
objectPath
- The name (including path information) of the data set object in the file.enumType
- The enum type in the HDF5 file.HDF5JavaException
- If the objectPath is not of enumType.HDF5EnumerationValueArray readArray(java.lang.String objectPath, HDF5EnumerationType enumType) throws HDF5JavaException
Enum
value from the data set objectPath.objectPath
- The name (including path information) of the data set object in the file.enumType
- The enumeration type of this array.HDF5JavaException
- If the objectPath is not of enumType.HDF5EnumerationValueArray readArray(java.lang.String objectPath) throws HDF5JavaException
Enum
value array from the data set objectPath.objectPath
- The name (including path information) of the data set object in the file.HDF5JavaException
- If the objectPath is not of enumType.HDF5EnumerationValueArray readArrayBlock(java.lang.String objectPath, int blockSize, long blockNumber)
Enum
value array block from the data set objectPath.objectPath
- The name (including path information) of the data set object in the file.blockSize
- The block size (this will be the return value of the
HDF5EnumerationValueArray.getLength()
returned if the data set is long
enough).blockNumber
- The number of the block to read (starting with 0, offset: multiply with
blockSize).HDF5EnumerationValueArray readArrayBlock(java.lang.String objectPath, HDF5EnumerationType enumType, int blockSize, long blockNumber)
Enum
value array block from the data set objectPath.objectPath
- The name (including path information) of the data set object in the file.enumType
- The enumeration type of this array.blockSize
- The block size (this will be the return value of the
HDF5EnumerationValueArray.getLength()
returned if the data set is long
enough).blockNumber
- The number of the block to read (starting with 0, offset: multiply with
blockSize).HDF5EnumerationValueArray readArrayBlockWithOffset(java.lang.String objectPath, int blockSize, long offset)
Enum
value array block from the data set objectPath.objectPath
- The name (including path information) of the data set object in the file.blockSize
- The block size (this will be the return value of the
HDF5EnumerationValueArray.getLength()
returned if the data set is long
enough).offset
- The offset of the block in the data set to start reading from (starting with
0).HDF5EnumerationValueArray readArrayBlockWithOffset(java.lang.String objectPath, HDF5EnumerationType enumType, int blockSize, long offset)
Enum
value array block from the data set objectPath.objectPath
- The name (including path information) of the data set object in the file.enumType
- The enumeration type of this array.blockSize
- The block size (this will be the return value of the
HDF5EnumerationValueArray.getLength()
returned if the data set is long
enough).offset
- The offset of the block in the data set to start reading from (starting with
0).HDF5EnumerationValueMDArray readMDArray(java.lang.String objectPath) throws HDF5JavaException
Enum
array (of rank N) from the data set objectPath.objectPath
- The name (including path information) of the data set object in the file.HDF5JavaException
- If the objectPath is not of enumType.HDF5EnumerationValueMDArray readMDArray(java.lang.String objectPath, HDF5EnumerationType enumType) throws HDF5JavaException
Enum
array (of rank N) from the data set objectPath.
This method is faster than read(String)
if the HDF5EnumerationType
is
already available.
objectPath
- The name (including path information) of the data set object in the file.enumType
- The enum type in the HDF5 file.HDF5JavaException
- If the objectPath is not of enumType.HDF5EnumerationValueMDArray readMDArrayBlock(java.lang.String objectPath, HDF5EnumerationType type, int[] blockDimensions, long[] blockNumber) throws HDF5JavaException
Enum
array block (of rank N) from the data set
objectPath.objectPath
- The name (including path information) of the data set object in the file.type
- The type definition of this enumeration type.blockDimensions
- The extent of the block to write along each axis.blockNumber
- The number of the block to write along each axis.HDF5JavaException
- If the objectPath is not an enum data set.HDF5EnumerationValueMDArray readMDArrayBlock(java.lang.String objectPath, int[] blockDimensions, long[] blockNumber) throws HDF5JavaException
Enum
array block (of rank N) from the data set
objectPath.objectPath
- The name (including path information) of the data set object in the file.blockDimensions
- The extent of the block to write along each axis.blockNumber
- The number of the block to write along each axis.HDF5JavaException
- If the objectPath is not an enum data set.HDF5EnumerationValueMDArray readMDArrayBlockWithOffset(java.lang.String objectPath, HDF5EnumerationType type, int[] blockDimensions, long[] offset) throws HDF5JavaException
Enum
array block (of rank N) from the data set
objectPath.objectPath
- The name (including path information) of the data set object in the file.type
- The type definition of this Enum
type.blockDimensions
- The extent of the block to write along each axis.offset
- The offset of the block to write in the data set along each axis.HDF5JavaException
- If the objectPath is not an enum data set.HDF5EnumerationValueMDArray readMDArrayBlockWithOffset(java.lang.String objectPath, int[] blockDimensions, long[] offset) throws HDF5JavaException
Enum
array block (of rank N) from the data set
objectPath.objectPath
- The name (including path information) of the data set object in the file.blockDimensions
- The extent of the block to write along each axis.offset
- The offset of the block to write in the data set along each axis.HDF5JavaException
- If the objectPath is not an enum data set.java.lang.Iterable<HDF5DataBlock<HDF5EnumerationValueArray>> getArrayBlocks(java.lang.String objectPath) throws HDF5JavaException
objectPath
- The name (including path information) of the data set object in the file.HDF5JavaException
- If the data set is not of rank 1.HDF5DataBlock
java.lang.Iterable<HDF5DataBlock<HDF5EnumerationValueArray>> getArrayBlocks(java.lang.String objectPath, HDF5EnumerationType enumType) throws HDF5JavaException
objectPath
- The name (including path information) of the data set object in the file.enumType
- The enumeration type of this array.HDF5JavaException
- If the data set is not of rank 1.HDF5DataBlock
java.lang.Iterable<HDF5MDEnumBlock> getMDArrayBlocks(java.lang.String objectPath, HDF5EnumerationType type) throws HDF5JavaException
objectPath
- The name (including path information) of the data set object in the file.type
- The type definition of this enum type.HDF5JavaException
- If the data set is not an enum data set.HDF5MDDataBlock
java.lang.Iterable<HDF5MDEnumBlock> getMDArrayBlocks(java.lang.String objectPath) throws HDF5JavaException
objectPath
- The name (including path information) of the data set object in the file.HDF5JavaException
- If the data set is not an enum data set.HDF5MDDataBlock