public class HDF5StringReader extends java.lang.Object implements IHDF5StringReader
IHDF5StringReader
.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 dataSetPath)
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 dataSetPath)
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. |
public java.lang.String getAttr(java.lang.String objectPath, java.lang.String attributeName)
IHDF5StringReader
getAttr
in interface IHDF5StringReader
objectPath
- The name (including path information) of the data set object in the file.attributeName
- The name of the attribute to read.public java.lang.String getAttrRaw(java.lang.String objectPath, java.lang.String attributeName)
IHDF5StringReader
getAttrRaw
in interface IHDF5StringReader
objectPath
- The name (including path information) of the data set object in the file.attributeName
- The name of the attribute to read.public java.lang.String[] getArrayAttr(java.lang.String objectPath, java.lang.String attributeName)
IHDF5StringReader
getArrayAttr
in interface IHDF5StringReader
objectPath
- The name (including path information) of the data set object in the file.attributeName
- The name of the attribute to read.public java.lang.String[] getArrayAttrRaw(java.lang.String objectPath, java.lang.String attributeName)
IHDF5StringReader
getArrayAttrRaw
in interface IHDF5StringReader
objectPath
- The name (including path information) of the data set object in the file.attributeName
- The name of the attribute to read.public ch.systemsx.cisd.base.mdarray.MDArray<java.lang.String> getMDArrayAttr(java.lang.String objectPath, java.lang.String attributeName)
IHDF5StringReader
getMDArrayAttr
in interface IHDF5StringReader
objectPath
- The name (including path information) of the data set object in the file.attributeName
- The name of the attribute to read.public ch.systemsx.cisd.base.mdarray.MDArray<java.lang.String> getMDArrayAttrRaw(java.lang.String objectPath, java.lang.String attributeName)
IHDF5StringReader
getMDArrayAttrRaw
in interface IHDF5StringReader
objectPath
- The name (including path information) of the data set object in the file.attributeName
- The name of the attribute to read.public java.lang.String read(java.lang.String objectPath) throws HDF5JavaException
IHDF5StringReader
read
in interface IHDF5StringReader
objectPath
- The name (including path information) of the data set object in the file.HDF5JavaException
- If the objectPath is not a string type.public java.lang.String readRaw(java.lang.String objectPath) throws HDF5JavaException
IHDF5StringReader
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.readRaw
in interface IHDF5StringReader
objectPath
- The name (including path information) of the data set object in the file.HDF5JavaException
- If the objectPath is not a string type.public java.lang.String[] readArrayRaw(java.lang.String objectPath) throws HDF5JavaException
IHDF5StringReader
readArrayRaw
in interface IHDF5StringReader
objectPath
- The name (including path information) of the data set object in the file.HDF5JavaException
- If the objectPath is not a string type.public java.lang.String[] readArray(java.lang.String objectPath) throws HDF5JavaException
IHDF5StringReader
readArray
in interface IHDF5StringReader
objectPath
- The name (including path information) of the data set object in the file.HDF5JavaException
- If the objectPath is not a string type.public java.lang.String[] readArrayBlock(java.lang.String objectPath, int blockSize, long blockNumber)
IHDF5StringReader
readArrayBlock
in interface IHDF5StringReader
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
).public java.lang.String[] readArrayBlockRaw(java.lang.String objectPath, int blockSize, long blockNumber)
IHDF5StringReader
readArrayBlockRaw
in interface IHDF5StringReader
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
).public java.lang.String[] readArrayBlockWithOffset(java.lang.String objectPath, int blockSize, long offset)
IHDF5StringReader
readArrayBlockWithOffset
in interface IHDF5StringReader
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.public java.lang.String[] readArrayBlockWithOffsetRaw(java.lang.String objectPath, int blockSize, long offset)
IHDF5StringReader
readArrayBlockWithOffsetRaw
in interface IHDF5StringReader
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.public ch.systemsx.cisd.base.mdarray.MDArray<java.lang.String> readMDArray(java.lang.String objectPath)
IHDF5StringReader
readMDArray
in interface IHDF5StringReader
objectPath
- The name (including path information) of the data set object in the file.public ch.systemsx.cisd.base.mdarray.MDArray<java.lang.String> readMDArrayRaw(java.lang.String objectPath)
IHDF5StringReader
readMDArrayRaw
in interface IHDF5StringReader
objectPath
- The name (including path information) of the data set object in the file.public ch.systemsx.cisd.base.mdarray.MDArray<java.lang.String> readMDArrayBlockWithOffset(java.lang.String objectPath, int[] blockDimensions, long[] offset)
IHDF5StringReader
readMDArrayBlockWithOffset
in interface IHDF5StringReader
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.public ch.systemsx.cisd.base.mdarray.MDArray<java.lang.String> readMDArrayBlockWithOffsetRaw(java.lang.String objectPath, int[] blockDimensions, long[] offset)
IHDF5StringReader
readMDArrayBlockWithOffsetRaw
in interface IHDF5StringReader
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.public ch.systemsx.cisd.base.mdarray.MDArray<java.lang.String> readMDArrayBlock(java.lang.String objectPath, int[] blockDimensions, long[] blockNumber)
IHDF5StringReader
readMDArrayBlock
in interface IHDF5StringReader
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]
).public ch.systemsx.cisd.base.mdarray.MDArray<java.lang.String> readMDArrayBlockRaw(java.lang.String objectPath, int[] blockDimensions, long[] blockNumber)
IHDF5StringReader
readMDArrayBlockRaw
in interface IHDF5StringReader
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]
).public java.lang.Iterable<HDF5DataBlock<java.lang.String[]>> getArrayNaturalBlocks(java.lang.String dataSetPath) throws HDF5JavaException
IHDF5StringReader
getArrayNaturalBlocks
in interface IHDF5StringReader
dataSetPath
- The name (including path information) of the data set object in the file.HDF5JavaException
- If the data set is not of rank 1.HDF5DataBlock
public java.lang.Iterable<HDF5DataBlock<java.lang.String[]>> getArrayNaturalBlocksRaw(java.lang.String dataSetPath) throws HDF5JavaException
IHDF5StringReader
getArrayNaturalBlocksRaw
in interface IHDF5StringReader
dataSetPath
- The name (including path information) of the data set object in the file.HDF5JavaException
- If the data set is not of rank 1.HDF5DataBlock
public java.lang.Iterable<HDF5MDDataBlock<ch.systemsx.cisd.base.mdarray.MDArray<java.lang.String>>> getMDArrayNaturalBlocks(java.lang.String objectPath)
IHDF5StringReader
getMDArrayNaturalBlocks
in interface IHDF5StringReader
HDF5MDDataBlock
public java.lang.Iterable<HDF5MDDataBlock<ch.systemsx.cisd.base.mdarray.MDArray<java.lang.String>>> getMDArrayNaturalBlocksRaw(java.lang.String objectPath)
IHDF5StringReader
getMDArrayNaturalBlocksRaw
in interface IHDF5StringReader
HDF5MDDataBlock