public class H4Group extends Group
CRT_ORDER_INDEXED, CRT_ORDER_TRACKED, LINK_TYPE_EXTERNAL, LINK_TYPE_HARD, LINK_TYPE_SOFT, nMembersInFile, parentfileFormat, linkTargetObjName, oid, separator| Constructor and Description |
|---|
H4Group(FileFormat theFile,
String name,
String path,
Group parent) |
H4Group(FileFormat theFile,
String name,
String path,
Group parent,
long[] oid)
Creates a group object with specific name, path, and parent.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close(long vgid)
close group access.
|
static H4Group |
create(String name,
Group pgroup)
Creates a new group.
|
List |
getMetadata()
Retrieves the object's metadata, such as attributes, from the file.
|
List |
getMetadata(int... attrPropList) |
boolean |
hasAttribute()
Check if the object has any attributes attached.
|
long |
open()
Opens an existing object such as a dataset or group for access.
|
void |
removeMetadata(Object info)
Deletes an existing piece of metadata from this object.
|
void |
updateMetadata(Object info)
Updates an existing piece of metadata attached to this object.
|
void |
writeMetadata(Object info)
Writes a specific piece of metadata (such as an attribute) into the file.
|
addToMemberList, breadthFirstMemberList, clear, depthFirstMemberList, getMember, getMemberList, getNumberOfMembersInFile, getParent, isRoot, removeFromMemberList, setNamedebug, equals, equalsOID, getFID, getFile, getFileFormat, getFullName, getLinkTargetObjName, getName, getOID, getPath, setLinkTargetObjName, setPath, toStringpublic H4Group(FileFormat theFile, String name, String path, Group parent)
public H4Group(FileFormat theFile, String name, String path, Group parent, long[] oid)
theFile - the HDF file.name - the name of this group.path - the full path of this group.parent - the parent of this group.oid - the unique identifier of this data object.public boolean hasAttribute()
MetaDataContainerpublic List getMetadata() throws hdf.hdflib.HDFException
MetaDataContainerMetadata, such as attributes, is stored in a List.
hdf.hdflib.HDFExceptionpublic void writeMetadata(Object info) throws Exception
MetaDataContainerinfo - the metadata to write.Exception - if the metadata can not be writtenpublic void removeMetadata(Object info) throws hdf.hdflib.HDFException
MetaDataContainerinfo - the metadata to delete.hdf.hdflib.HDFExceptionpublic void updateMetadata(Object info) throws Exception
MetaDataContainerinfo - the metadata to update.Exception - if the metadata can not be updatedpublic long open()
HObjectopen in class HObjectHObject.close(long)public void close(long vgid)
public static H4Group create(String name, Group pgroup) throws Exception
name - the name of the group to create.pgroup - the parent group of the new group.Exception - if the group can not be createdpublic List getMetadata(int... attrPropList) throws Exception
ExceptionCopyright © 2018. All Rights Reserved.