public interface JHDFService extends Service
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes and resets the service.
|
boolean |
exists(String path)
Checks if path in HDF5 file exists.
|
int |
getElementSize(String path)
Retrieves the Element Size of a dataset in Byte.
|
String |
getFile()
Retrieves the current initialized file path.
|
List<String> |
getMember(String path)
Retrieves the all members of a group.
|
int[] |
getShape(String path)
Retrieves the shape of a dataset.
|
ch.systemsx.cisd.base.mdarray.MDByteArray |
readByteArray(String path)
Reads a multi-dimensional byte array from path.
|
ch.systemsx.cisd.base.mdarray.MDByteArray |
readByteBlockArray(String path,
int[] offset,
int[] size)
Reads a multi-dimensional sub-block byte array from path.
|
ch.systemsx.cisd.hdf5.HDF5CompoundDataMap[] |
readCompoundArrayDataMap(String path)
Reads Compound array of any type
|
ch.systemsx.cisd.base.mdarray.MDIntArray |
readIntArray(String path)
Reads a multi-dimensional int array from path.
|
ch.systemsx.cisd.base.mdarray.MDIntArray |
readIntBlockArray(String path,
int[] offset,
int[] size)
Reads a multi-dimensional sub-block int array from path.
|
ch.systemsx.cisd.base.mdarray.MDShortArray |
readShortBlockArray(String path,
int[] offset,
int[] size)
Reads a multi-dimensional sub-block short array from path.
|
String[] |
readStringArray(String path)
Reads String array array from path.
|
void |
setFile(String file)
Initializes the service on a given file path.
|
void setFile(String file) throws IOException
file
- Path to initialize the service with.IOException
- If there is an error initializing the service with
file
.String getFile()
null
if the service
has yet to be initialized or is closed.int[] getShape(String path)
path
- HDF path to the dataset.List<String> getMember(String path)
path
- HDF path to the group.int getElementSize(String path)
path
- HDF path to the group.ch.systemsx.cisd.base.mdarray.MDByteArray readByteArray(String path)
path
- HDF path to the dataset.ch.systemsx.cisd.base.mdarray.MDIntArray readIntArray(String path)
path
- HDF path to the dataset.ch.systemsx.cisd.base.mdarray.MDIntArray readIntBlockArray(String path, int[] offset, int[] size)
path
- HDF path to the dataset.offset
- Offset of the block to read.size
- Output size of the array.ch.systemsx.cisd.base.mdarray.MDByteArray readByteBlockArray(String path, int[] offset, int[] size)
path
- HDF path to the dataset.offset
- Offset of the block to read.size
- Output size of the array.ch.systemsx.cisd.base.mdarray.MDShortArray readShortBlockArray(String path, int[] offset, int[] size)
path
- HDF path to the dataset.offset
- Offset of the block to read.size
- Output size of the array.String[] readStringArray(String path)
path
- HDF path to the dataset.ch.systemsx.cisd.hdf5.HDF5CompoundDataMap[] readCompoundArrayDataMap(String path)
path
- HDF path to the dataset.boolean exists(String path)
path
- path to HDF5 group or dataset.void close() throws IOException
IOException
- If there is an error closing the file.Copyright © 2015 Open Microscopy Environment