Package nz.org.riskscape.hdf5
Class H5Group
java.lang.Object
nz.org.riskscape.hdf5.H5Object
nz.org.riskscape.hdf5.H5Group
- All Implemented Interfaces:
AutoCloseable
Methods for inspecting and accessing elements within an H5Group. Groups should be constructed/accessed via
H5File
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
The group above this one.boolean
isRoot()
Opens either a group or dataset, which is a member of this group, by its nametoString()
void
visit
(H5GroupVisitor visitor) Visit all the child objects (other groups and datasets) of this group using a callbackMethods inherited from class nz.org.riskscape.hdf5.H5Object
getPointer
-
Method Details
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classH5Object
-
toString
-
isRoot
public boolean isRoot()- Returns:
- true if this group is at the root of an hdf5file, e.g. its name is "/"
-
visit
Visit all the child objects (other groups and datasets) of this group using a callback
- Parameters:
visitor
- callback that sees the children.
-
openChild
Opens either a group or dataset, which is a member of this group, by its name
-
getParent
The group above this one. Note that this isn't going to be 100% reliable right now - it might skip path elements depending on how it was constructed. Returns itself if this is the parent group
-
getGroupName
-