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(int vgid)
close group access.
|
static H4Group |
create(String name,
Group pgroup)
Creates a new group.
|
List |
getMetadata()
Retrieves the metadata such as attributes from file.
|
List |
getMetadata(int... attrPropList) |
boolean |
hasAttribute()
Check if the object has any attributes attached.
|
int |
open()
Opens an existing object such as a dataset or group for access.
|
void |
removeMetadata(Object info)
Deletes an existing metadata from this data object.
|
void |
updateMetadata(Object info)
Updates an existing metadata from this data object.
|
void |
writeMetadata(Object info)
Writes a specific metadata (such as attribute) into file.
|
addToMemberList, clear, 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()
DataFormatpublic List getMetadata() throws hdf.hdflib.HDFException
DataFormatMetadata such as attributes are stored in a List.
hdf.hdflib.HDFExceptionpublic void writeMetadata(Object info) throws Exception
DataFormatinfo - the metadata to write.Exception - if the metadata can not be writtenpublic void removeMetadata(Object info) throws hdf.hdflib.HDFException
DataFormatinfo - the metadata to delete.hdf.hdflib.HDFExceptionpublic void updateMetadata(Object info) throws Exception
DataFormatinfo - the metadata to update.Exception - if the metadata can not be updatedpublic int open()
HObjectopen in class HObjectHObject.close(int)public void close(int 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 © 2017. All Rights Reserved.