public interface IHDF5ObjectReadOnlyInfoProviderHandler
Obtain an object implementing this interface by calling IHDF5Reader.object()
.
Modifier and Type | Method and Description |
---|---|
void |
copy(java.lang.String sourceObject,
IHDF5Writer destinationWriter)
Copies the sourceObject to the root group of the HDF5 file represented by the
destinationWriter.
|
void |
copy(java.lang.String sourceObject,
IHDF5Writer destinationWriter,
java.lang.String destinationObject)
Copies the sourceObject to the destinationObject of the HDF5 file
represented by the destinationWriter.
|
void |
copyAll(IHDF5Writer destinationWriter)
Copies all objects of the file represented by this reader to the root group of the HDF5 file
represented by the destinationWriter.
|
boolean |
exists(java.lang.String objectPath)
Returns
true , if objectPath exists and false otherwise. |
boolean |
exists(java.lang.String objectPath,
boolean followLink)
Returns
true , if objectPath exists and false otherwise. |
java.util.List<java.lang.String> |
getAllAttributeNames(java.lang.String objectPath)
Returns the names of all attributes of the given objectPath.
|
java.util.List<HDF5LinkInformation> |
getAllGroupMemberInformation(java.lang.String groupPath,
boolean readLinkTargets)
Returns the link information about all members of groupPath.
|
java.util.List<java.lang.String> |
getAllGroupMembers(java.lang.String groupPath)
Returns all members of groupPath, including internal groups that may be used by
the library to do house-keeping.
|
int[] |
getArrayDimensions(java.lang.String objectPath)
Returns the dimensions of objectPath(empty if this isno array type).
|
int |
getArrayRank(java.lang.String objectPath)
Returns the rank of the array of objectPath (0 if this is no array type).
|
HDF5DataTypeInformation |
getAttributeInformation(java.lang.String objectPath,
java.lang.String attributeName)
Returns the information about a data set as a
HDF5DataTypeInformation object. |
HDF5DataTypeInformation |
getAttributeInformation(java.lang.String objectPath,
java.lang.String attributeName,
HDF5DataTypeInformation.DataTypeInfoOptions dataTypeInfoOptions)
Returns the information about a data set as a
HDF5DataTypeInformation object. |
java.util.List<java.lang.String> |
getAttributeNames(java.lang.String objectPath)
Returns the names of the attributes of the given objectPath.
|
HDF5DataSetInformation |
getDataSetInformation(java.lang.String objectPath)
Returns the information about a data set as a
HDF5DataSetInformation object. |
HDF5DataSetInformation |
getDataSetInformation(java.lang.String objectPath,
HDF5DataTypeInformation.DataTypeInfoOptions dataTypeInfoOptions)
Returns the information about a data set as a
HDF5DataSetInformation object. |
long[] |
getDimensions(java.lang.String objectPath)
Returns the dimensions of objectPath.
|
int |
getElementSize(java.lang.String objectPath)
Returns the size of one element of objectPath.
|
java.util.List<HDF5LinkInformation> |
getGroupMemberInformation(java.lang.String groupPath,
boolean readLinkTargets)
Returns the link information about the members of groupPath.
|
java.util.List<java.lang.String> |
getGroupMemberPaths(java.lang.String groupPath)
Returns the paths of the members of groupPath (including the parent).
|
java.util.List<java.lang.String> |
getGroupMembers(java.lang.String groupPath)
Returns the members of groupPath.
|
HDF5LinkInformation |
getLinkInformation(java.lang.String objectPath)
Returns the link information for the given objectPath.
|
long |
getNumberOfElements(java.lang.String objectPath)
Returns the total number of elements of objectPath.
|
HDF5ObjectInformation |
getObjectInformation(java.lang.String objectPath)
Returns the object information for the given objectPath.
|
HDF5ObjectType |
getObjectType(java.lang.String objectPath)
Returns the type of the given objectPath.
|
HDF5ObjectType |
getObjectType(java.lang.String objectPath,
boolean followLink)
Returns the type of the given objectPath.
|
int |
getRank(java.lang.String objectPath)
Returns the rank of this data set of objectPath.
|
long |
getSize(java.lang.String objectPath)
Returns the total size (in bytes) of objectPath.
|
long[] |
getSpaceDimensions(java.lang.String objectPath)
Returns the dimensions of the space of objectPath (empty if this is a scalar
space).
|
int |
getSpaceRank(java.lang.String objectPath)
Returns the rank of the space of objectPath (0 if this is a scalar space).
|
boolean |
hasAttribute(java.lang.String objectPath,
java.lang.String attributeName)
Returns
true , if the objectPath has an attribute with name
attributeName. |
boolean |
isDataSet(java.lang.String objectPath)
Returns
true if the objectPath exists and represents a data set and
false otherwise. |
boolean |
isDataSet(java.lang.String objectPath,
boolean followLink)
Returns
true if the objectPath exists and represents a data set and
false otherwise. |
boolean |
isDataType(java.lang.String objectPath)
Returns
true if the objectPath exists and represents a data type and
false otherwise. |
boolean |
isDataType(java.lang.String objectPath,
boolean followLink)
Returns
true if the objectPath exists and represents a data type and
false otherwise. |
boolean |
isExternalLink(java.lang.String objectPath)
Returns
true if the objectPath exists and represents an external link
and false otherwise. |
boolean |
isGroup(java.lang.String objectPath)
Returns
true if the objectPath exists and represents a group and
false otherwise. |
boolean |
isGroup(java.lang.String objectPath,
boolean followLink)
Returns
true if the objectPath exists and represents a group and
false otherwise. |
boolean |
isHouseKeepingObject(java.lang.String objectPath)
Returns
true if objectPath denotes an internal (house-keeping)
object. |
boolean |
isSoftLink(java.lang.String objectPath)
Returns
true if the objectPath exists and represents a soft link and
false otherwise. |
boolean |
isSymbolicLink(java.lang.String objectPath)
Returns
true if the objectPath exists and represents either a soft
link or an external link and false otherwise. |
HDF5DataSet |
openDataSet(java.lang.String objectPath)
Opens a data set for reading (reader and writer) or writing (writer).
|
java.lang.String |
toHouseKeepingPath(java.lang.String objectPath)
Creates and returns an internal (house-keeping) version of objectPath.
|
java.lang.String |
tryGetDataTypePath(HDF5DataType type)
Returns the path of the data type, or
null , if type is not
a named data type. |
java.lang.String |
tryGetDataTypePath(java.lang.String objectPath)
Returns the path of the data type of the data set objectPath, or
null
, if this data set is not of a named data type. |
java.lang.String |
tryGetExternalLinkFilename(java.lang.String objectPath)
Returns the filename of an external link, or
null , if this link does not exist or is not an external link. |
java.lang.String |
tryGetExternalLinkTarget(java.lang.String objectPath)
Returns the external link target of this link, or
null , if this link does not exist or is not an external link. |
java.lang.String |
tryGetSymbolicLinkTarget(java.lang.String objectPath)
Returns the target of the symbolic link that objectPath points to, or
null , if objectPath is not a symbolic link. |
HDF5DataTypeVariant |
tryGetTypeVariant(java.lang.String objectPath)
Returns the data type variant of objectPath, or
null , if no type
variant is defined for this objectPath. |
HDF5DataTypeVariant |
tryGetTypeVariant(java.lang.String objectPath,
java.lang.String attributeName)
Returns the data type variant of attributeName of object objectPath, or
null , if no type variant is defined for this objectPath. |
HDF5LinkInformation getLinkInformation(java.lang.String objectPath)
HDF5ObjectType.NONEXISTENT
.HDF5ObjectInformation getObjectInformation(java.lang.String objectPath)
HDF5ObjectType.NONEXISTENT
and the other fields will not
be set.HDF5ObjectType getObjectType(java.lang.String objectPath, boolean followLink)
false
and objectPath is a symbolic link, this method will return the
type of the link rather than the type of the object that the link points to.HDF5ObjectType getObjectType(java.lang.String objectPath)
boolean exists(java.lang.String objectPath, boolean followLink)
true
, if objectPath exists and false
otherwise.
if followLink is false
and objectPath is a symbolic link,
this method will return true
regardless of whether the link target exists or
not.boolean exists(java.lang.String objectPath)
true
, if objectPath exists and false
otherwise.
If objectPath is a symbolic link, the method will return true
if the
link target exists, that is, this method will follow symbolic links.HDF5DataSet openDataSet(java.lang.String objectPath)
objectPath
- The name (with path) of the data set to openjava.lang.String toHouseKeepingPath(java.lang.String objectPath)
boolean isHouseKeepingObject(java.lang.String objectPath)
true
if objectPath denotes an internal (house-keeping)
object.boolean isGroup(java.lang.String objectPath, boolean followLink)
true
if the objectPath exists and represents a group and
false
otherwise. Note that if followLink is false
this
method will return false
if objectPath is a symbolic link that points
to a group.boolean isGroup(java.lang.String objectPath)
true
if the objectPath exists and represents a group and
false
otherwise. Note that if objectPath is a symbolic link, this
method will return true
if the link target of the symbolic link is a group, that
is, this method will follow symbolic links.boolean isDataSet(java.lang.String objectPath, boolean followLink)
true
if the objectPath exists and represents a data set and
false
otherwise. Note that if followLink is false
this
method will return false
if objectPath is a symbolic link that points
to a data set.boolean isDataSet(java.lang.String objectPath)
true
if the objectPath exists and represents a data set and
false
otherwise. Note that if objectPath is a symbolic link, this
method will return true
if the link target of the symbolic link is a data set,
that is, this method will follow symbolic links.boolean isDataType(java.lang.String objectPath, boolean followLink)
true
if the objectPath exists and represents a data type and
false
otherwise. Note that if followLink is false
this
method will return false
if objectPath is a symbolic link that points
to a data type.boolean isDataType(java.lang.String objectPath)
true
if the objectPath exists and represents a data type and
false
otherwise. Note that if objectPath is a symbolic link, this
method will return true
if the link target of the symbolic link is a data type,
that is, this method will follow symbolic links.boolean isSoftLink(java.lang.String objectPath)
true
if the objectPath exists and represents a soft link and
false
otherwise.boolean isExternalLink(java.lang.String objectPath)
true
if the objectPath exists and represents an external link
and false
otherwise.boolean isSymbolicLink(java.lang.String objectPath)
true
if the objectPath exists and represents either a soft
link or an external link and false
otherwise.java.lang.String tryGetSymbolicLinkTarget(java.lang.String objectPath)
null
, if objectPath is not a symbolic link.
Note that external links have a special format: They start with a prefix " EXTERNAL::
", then comes the path of the external file
(beware that this part uses the native path separator, i.e. "\" on Windows). Finally, separated by "::
", the path of the link in
the external file is provided (this part always uses "/" as path separator).
java.lang.String tryGetExternalLinkFilename(java.lang.String objectPath)
null
, if this link does not exist or is not an external link.java.lang.String tryGetExternalLinkTarget(java.lang.String objectPath)
null
, if this link does not exist or is not an external link.boolean hasAttribute(java.lang.String objectPath, java.lang.String attributeName)
true
, if the objectPath has an attribute with name
attributeName.objectPath
- The name (including path information) of the data set object in the file.attributeName
- The name of the attribute to read.true
, if the attribute exists for the object.java.util.List<java.lang.String> getAttributeNames(java.lang.String objectPath)
objectPath
- The name (including path information) of the object (data set or group) to
return the attributes for.java.util.List<java.lang.String> getAllAttributeNames(java.lang.String objectPath)
This may include attributes that are used internally by the library and are not supposed to be changed by application programmers.
objectPath
- The name (including path information) of the object (data set or group) to
return the attributes for.HDF5DataTypeInformation getAttributeInformation(java.lang.String objectPath, java.lang.String attributeName)
HDF5DataTypeInformation
object.objectPath
- The name (including path information) of the object that has the attribute
to return information about.attributeName
- The name of the attribute to get information about.HDF5DataTypeInformation getAttributeInformation(java.lang.String objectPath, java.lang.String attributeName, HDF5DataTypeInformation.DataTypeInfoOptions dataTypeInfoOptions)
HDF5DataTypeInformation
object.objectPath
- The name (including path information) of the object that has the attribute
to return information about.attributeName
- The name of the attribute to get information about.dataTypeInfoOptions
- The options on which information to get about the member data
types.HDF5DataSetInformation getDataSetInformation(java.lang.String objectPath)
HDF5DataSetInformation
object. It is a
failure condition if the objectPath does not exist or does not identify a data
set.objectPath
- The name (including path information) of the data set to return information
about.HDF5DataSetInformation getDataSetInformation(java.lang.String objectPath, HDF5DataTypeInformation.DataTypeInfoOptions dataTypeInfoOptions)
HDF5DataSetInformation
object. It is a
failure condition if the objectPath does not exist or does not identify a data
set.objectPath
- The name (including path information) of the data set to return information
about.dataTypeInfoOptions
- The options on which information to get about the member data
types.long getSize(java.lang.String objectPath)
long getNumberOfElements(java.lang.String objectPath)
int getElementSize(java.lang.String objectPath)
int getSpaceRank(java.lang.String objectPath)
long[] getSpaceDimensions(java.lang.String objectPath)
int getArrayRank(java.lang.String objectPath)
int[] getArrayDimensions(java.lang.String objectPath)
int getRank(java.lang.String objectPath)
long[] getDimensions(java.lang.String objectPath)
void copy(java.lang.String sourceObject, IHDF5Writer destinationWriter, java.lang.String destinationObject)
void copy(java.lang.String sourceObject, IHDF5Writer destinationWriter)
void copyAll(IHDF5Writer destinationWriter)
java.util.List<java.lang.String> getGroupMembers(java.lang.String groupPath)
groupPath
- The path of the group to get the members for.java.lang.IllegalArgumentException
- If groupPath is not a group.java.util.List<java.lang.String> getAllGroupMembers(java.lang.String groupPath)
groupPath
- The path of the group to get the members for.java.lang.IllegalArgumentException
- If groupPath is not a group.java.util.List<java.lang.String> getGroupMemberPaths(java.lang.String groupPath)
groupPath
- The path of the group to get the member paths for.java.lang.IllegalArgumentException
- If groupPath is not a group.java.util.List<HDF5LinkInformation> getGroupMemberInformation(java.lang.String groupPath, boolean readLinkTargets)
groupPath
- The path of the group to get the members for.readLinkTargets
- If true
, for symbolic links the link targets will be
available via HDF5LinkInformation.tryGetSymbolicLinkTarget()
.java.lang.IllegalArgumentException
- If groupPath is not a group.java.util.List<HDF5LinkInformation> getAllGroupMemberInformation(java.lang.String groupPath, boolean readLinkTargets)
This may include attributes that are used internally by the library and are not supposed to be changed by application programmers.
groupPath
- The path of the group to get the members for.readLinkTargets
- If true
, the link targets will be read for symbolic
links.java.lang.IllegalArgumentException
- If groupPath is not a group.HDF5DataTypeVariant tryGetTypeVariant(java.lang.String objectPath)
null
, if no type
variant is defined for this objectPath.objectPath
- The name (including path information) of the data set object in the file.null
.HDF5DataTypeVariant tryGetTypeVariant(java.lang.String objectPath, java.lang.String attributeName)
null
, if no type variant is defined for this objectPath.objectPath
- The name (including path information) of the data set object in the file.null
.java.lang.String tryGetDataTypePath(java.lang.String objectPath)
null
, if this data set is not of a named data type.java.lang.String tryGetDataTypePath(HDF5DataType type)
null
, if type is not
a named data type.