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)
IHDF5StringReadergetAttr in interface IHDF5StringReaderobjectPath - 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)
IHDF5StringReadergetAttrRaw in interface IHDF5StringReaderobjectPath - 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)
IHDF5StringReadergetArrayAttr in interface IHDF5StringReaderobjectPath - 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)
IHDF5StringReadergetArrayAttrRaw in interface IHDF5StringReaderobjectPath - 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)
IHDF5StringReadergetMDArrayAttr in interface IHDF5StringReaderobjectPath - 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)
IHDF5StringReadergetMDArrayAttrRaw in interface IHDF5StringReaderobjectPath - 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
IHDF5StringReaderread in interface IHDF5StringReaderobjectPath - 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
IHDF5StringReaderString 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 IHDF5StringReaderobjectPath - 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
IHDF5StringReaderreadArrayRaw in interface IHDF5StringReaderobjectPath - 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
IHDF5StringReaderreadArray in interface IHDF5StringReaderobjectPath - 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)
IHDF5StringReaderreadArrayBlock in interface IHDF5StringReaderobjectPath - 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)
IHDF5StringReaderreadArrayBlockRaw in interface IHDF5StringReaderobjectPath - 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)
IHDF5StringReaderreadArrayBlockWithOffset in interface IHDF5StringReaderobjectPath - 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)
IHDF5StringReaderreadArrayBlockWithOffsetRaw in interface IHDF5StringReaderobjectPath - 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)
IHDF5StringReaderreadMDArray in interface IHDF5StringReaderobjectPath - 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)
IHDF5StringReaderreadMDArrayRaw in interface IHDF5StringReaderobjectPath - 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)
IHDF5StringReaderreadMDArrayBlockWithOffset in interface IHDF5StringReaderobjectPath - 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)
IHDF5StringReaderreadMDArrayBlockWithOffsetRaw in interface IHDF5StringReaderobjectPath - 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)
IHDF5StringReaderreadMDArrayBlock in interface IHDF5StringReaderobjectPath - 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)
IHDF5StringReaderreadMDArrayBlockRaw in interface IHDF5StringReaderobjectPath - 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
IHDF5StringReadergetArrayNaturalBlocks in interface IHDF5StringReaderdataSetPath - The name (including path information) of the data set object in the file.HDF5JavaException - If the data set is not of rank 1.HDF5DataBlockpublic java.lang.Iterable<HDF5DataBlock<java.lang.String[]>> getArrayNaturalBlocksRaw(java.lang.String dataSetPath) throws HDF5JavaException
IHDF5StringReadergetArrayNaturalBlocksRaw in interface IHDF5StringReaderdataSetPath - The name (including path information) of the data set object in the file.HDF5JavaException - If the data set is not of rank 1.HDF5DataBlockpublic java.lang.Iterable<HDF5MDDataBlock<ch.systemsx.cisd.base.mdarray.MDArray<java.lang.String>>> getMDArrayNaturalBlocks(java.lang.String objectPath)
IHDF5StringReadergetMDArrayNaturalBlocks in interface IHDF5StringReaderHDF5MDDataBlockpublic java.lang.Iterable<HDF5MDDataBlock<ch.systemsx.cisd.base.mdarray.MDArray<java.lang.String>>> getMDArrayNaturalBlocksRaw(java.lang.String objectPath)
IHDF5StringReadergetMDArrayNaturalBlocksRaw in interface IHDF5StringReaderHDF5MDDataBlock