public interface IHDF5StringReader
String
values from HDF5 files.
Obtain an object implementing this interface by calling IHDF5Reader.string()
.
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getArrayAttr(java.lang.String objectPath,
java.lang.String attributeName)
Reads a string array attribute named attributeName from the object
objectPath.
|
java.lang.String[] |
getArrayAttrRaw(java.lang.String objectPath,
java.lang.String attributeName)
Reads a string array attribute named attributeName from the object
objectPath.
|
java.lang.Iterable<HDF5DataBlock<java.lang.String[]>> |
getArrayNaturalBlocks(java.lang.String objectPath)
Provides all natural blocks of this one-dimensional string data set to iterate over.
|
java.lang.Iterable<HDF5DataBlock<java.lang.String[]>> |
getArrayNaturalBlocksRaw(java.lang.String objectPath)
Provides all natural blocks of this one-dimensional string data set to iterate over.
|
java.lang.String |
getAttr(java.lang.String objectPath,
java.lang.String attributeName)
Reads a string attribute named attributeName from the object
objectPath.
|
java.lang.String |
getAttrRaw(java.lang.String objectPath,
java.lang.String attributeName)
Reads a string attribute named attributeName from the object
objectPath.
|
ch.systemsx.cisd.base.mdarray.MDArray<java.lang.String> |
getMDArrayAttr(java.lang.String objectPath,
java.lang.String attributeName)
Reads a multi-dimensional string array attribute named attributeName from the
object objectPath.
|
ch.systemsx.cisd.base.mdarray.MDArray<java.lang.String> |
getMDArrayAttrRaw(java.lang.String objectPath,
java.lang.String attributeName)
Reads a multi-dimensional string array attribute named attributeName from the
object objectPath.
|
java.lang.Iterable<HDF5MDDataBlock<ch.systemsx.cisd.base.mdarray.MDArray<java.lang.String>>> |
getMDArrayNaturalBlocks(java.lang.String objectPath)
Provides all natural blocks of this multi-dimensional string data set to iterate over.
|
java.lang.Iterable<HDF5MDDataBlock<ch.systemsx.cisd.base.mdarray.MDArray<java.lang.String>>> |
getMDArrayNaturalBlocksRaw(java.lang.String objectPath)
Provides all natural blocks of this multi-dimensional string data set to iterate over.
|
java.lang.String |
read(java.lang.String objectPath)
Reads a string from the data set objectPath.
|
java.lang.String[] |
readArray(java.lang.String objectPath)
Reads a string array (of rank 1) from the data set objectPath.
|
java.lang.String[] |
readArrayBlock(java.lang.String objectPath,
int blockSize,
long blockNumber)
Reads a block of a string array (of rank 1) from the data set objectPath.
|
java.lang.String[] |
readArrayBlockRaw(java.lang.String objectPath,
int blockSize,
long blockNumber)
Reads a block of a string array (of rank 1) from the data set objectPath.
|
java.lang.String[] |
readArrayBlockWithOffset(java.lang.String objectPath,
int blockSize,
long offset)
Reads a block of a string array (of rank 1) from the data set objectPath.
|
java.lang.String[] |
readArrayBlockWithOffsetRaw(java.lang.String objectPath,
int blockSize,
long offset)
Reads a block of a string array (of rank 1) from the data set objectPath.
|
java.lang.String[] |
readArrayRaw(java.lang.String objectPath)
Reads a string array (of rank 1) from the data set objectPath.
|
ch.systemsx.cisd.base.mdarray.MDArray<java.lang.String> |
readMDArray(java.lang.String objectPath)
Reads a string array (of rank N) from the data set objectPath.
|
ch.systemsx.cisd.base.mdarray.MDArray<java.lang.String> |
readMDArrayBlock(java.lang.String objectPath,
int[] blockDimensions,
long[] blockNumber)
Reads a block of a string array (of rank N) from the data set objectPath.
|
ch.systemsx.cisd.base.mdarray.MDArray<java.lang.String> |
readMDArrayBlockRaw(java.lang.String objectPath,
int[] blockDimensions,
long[] blockNumber)
Reads a block of a string array (of rank N) from the data set objectPath.
|
ch.systemsx.cisd.base.mdarray.MDArray<java.lang.String> |
readMDArrayBlockWithOffset(java.lang.String objectPath,
int[] blockDimensions,
long[] offset)
Reads a block of a string array (of rank N) from the data set objectPath.
|
ch.systemsx.cisd.base.mdarray.MDArray<java.lang.String> |
readMDArrayBlockWithOffsetRaw(java.lang.String objectPath,
int[] blockDimensions,
long[] offset)
Reads a block of a string array (of rank N) from the data set objectPath.
|
ch.systemsx.cisd.base.mdarray.MDArray<java.lang.String> |
readMDArrayRaw(java.lang.String objectPath)
Reads a string array (of rank N) from the data set objectPath.
|
java.lang.String |
readRaw(java.lang.String objectPath)
Reads a
String from the data set objectPath. |
java.lang.String getAttr(java.lang.String objectPath, java.lang.String attributeName)
objectPath
- The name (including path information) of the data set object in the file.attributeName
- The name of the attribute to read.java.lang.String getAttrRaw(java.lang.String objectPath, java.lang.String attributeName)
objectPath
- The name (including path information) of the data set object in the file.attributeName
- The name of the attribute to read.java.lang.String[] getArrayAttr(java.lang.String objectPath, java.lang.String attributeName)
objectPath
- The name (including path information) of the data set object in the file.attributeName
- The name of the attribute to read.java.lang.String[] getArrayAttrRaw(java.lang.String objectPath, java.lang.String attributeName)
objectPath
- The name (including path information) of the data set object in the file.attributeName
- The name of the attribute to read.ch.systemsx.cisd.base.mdarray.MDArray<java.lang.String> getMDArrayAttr(java.lang.String objectPath, java.lang.String attributeName)
objectPath
- The name (including path information) of the data set object in the file.attributeName
- The name of the attribute to read.ch.systemsx.cisd.base.mdarray.MDArray<java.lang.String> getMDArrayAttrRaw(java.lang.String objectPath, java.lang.String attributeName)
objectPath
- The name (including path information) of the data set object in the file.attributeName
- The name of the attribute to read.java.lang.String read(java.lang.String objectPath) throws HDF5JavaException
objectPath
- The name (including path information) of the data set object in the file.HDF5JavaException
- If the objectPath is not a string type.java.lang.String readRaw(java.lang.String objectPath) throws HDF5JavaException
String
from the data set objectPath. Does not consider '\0'
as end of string but reads the full length of the string. This needs to be a string type.objectPath
- The name (including path information) of the data set object in the file.HDF5JavaException
- If the objectPath is not a string type.java.lang.String[] readArray(java.lang.String objectPath) throws HDF5JavaException
objectPath
- The name (including path information) of the data set object in the file.HDF5JavaException
- If the objectPath is not a string type.java.lang.String[] readArrayRaw(java.lang.String objectPath) throws HDF5JavaException
objectPath
- The name (including path information) of the data set object in the file.HDF5JavaException
- If the objectPath is not a string type.java.lang.String[] readArrayBlock(java.lang.String objectPath, int blockSize, long blockNumber)
objectPath
- The name (including path information) of the data set object in the file.blockSize
- The size of the block to read from the data set.blockNumber
- The number of the block to read from the data set (the offset is
blockSize * blockNumber
).HDF5JavaException
- If the objectPath is not a string type.java.lang.String[] readArrayBlockRaw(java.lang.String objectPath, int blockSize, long blockNumber)
objectPath
- The name (including path information) of the data set object in the file.blockSize
- The size of the block to read from the data set.blockNumber
- The number of the block to read from the data set (the offset is
blockSize * blockNumber
).HDF5JavaException
- If the objectPath is not a string type.java.lang.String[] readArrayBlockWithOffset(java.lang.String objectPath, int blockSize, long offset)
objectPath
- The name (including path information) of the data set object in the file.blockSize
- The size of the block to read from the data set.offset
- The offset of the block in the data set.HDF5JavaException
- If the objectPath is not a string type.java.lang.String[] readArrayBlockWithOffsetRaw(java.lang.String objectPath, int blockSize, long offset)
objectPath
- The name (including path information) of the data set object in the file.blockSize
- The size of the block to read from the data set.offset
- The offset of the block in the data set.HDF5JavaException
- If the objectPath is not a string type.ch.systemsx.cisd.base.mdarray.MDArray<java.lang.String> readMDArray(java.lang.String objectPath)
objectPath
- The name (including path information) of the data set object in the file.HDF5JavaException
- If the objectPath is not a string type.ch.systemsx.cisd.base.mdarray.MDArray<java.lang.String> readMDArrayRaw(java.lang.String objectPath)
objectPath
- The name (including path information) of the data set object in the file.HDF5JavaException
- If the objectPath is not a string type.ch.systemsx.cisd.base.mdarray.MDArray<java.lang.String> readMDArrayBlock(java.lang.String objectPath, int[] blockDimensions, long[] blockNumber)
objectPath
- The name (including path information) of the data set object in the file.blockDimensions
- The dimensions (along each axis) of the block to read from the data
set.blockNumber
- The number of the block to read from the data set (the offset in each
dimension i is blockSize[i] * blockNumber[i]
).HDF5JavaException
- If the objectPath is not a string type.ch.systemsx.cisd.base.mdarray.MDArray<java.lang.String> readMDArrayBlockRaw(java.lang.String objectPath, int[] blockDimensions, long[] blockNumber)
objectPath
- The name (including path information) of the data set object in the file.blockDimensions
- The dimensions (along each axis) of the block to read from the data
set.blockNumber
- The number of the block to read from the data set (the offset in each
dimension i is blockSize[i] * blockNumber[i]
).HDF5JavaException
- If the objectPath is not a string type.ch.systemsx.cisd.base.mdarray.MDArray<java.lang.String> readMDArrayBlockWithOffset(java.lang.String objectPath, int[] blockDimensions, long[] offset)
objectPath
- The name (including path information) of the data set object in the file.blockDimensions
- The dimensions (along each axis) of the block to read from the data
set.offset
- The offset of the block in the data set.HDF5JavaException
- If the objectPath is not a string type.ch.systemsx.cisd.base.mdarray.MDArray<java.lang.String> readMDArrayBlockWithOffsetRaw(java.lang.String objectPath, int[] blockDimensions, long[] offset)
objectPath
- The name (including path information) of the data set object in the file.blockDimensions
- The dimensions (along each axis) of the block to read from the data
set.offset
- The offset of the block in the data set.HDF5JavaException
- If the objectPath is not a string type.java.lang.Iterable<HDF5DataBlock<java.lang.String[]>> getArrayNaturalBlocks(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<java.lang.String[]>> getArrayNaturalBlocksRaw(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<HDF5MDDataBlock<ch.systemsx.cisd.base.mdarray.MDArray<java.lang.String>>> getMDArrayNaturalBlocks(java.lang.String objectPath)
HDF5MDDataBlock
java.lang.Iterable<HDF5MDDataBlock<ch.systemsx.cisd.base.mdarray.MDArray<java.lang.String>>> getMDArrayNaturalBlocksRaw(java.lang.String objectPath)
HDF5MDDataBlock