public class H4Group extends Group
CRT_ORDER_INDEXED, CRT_ORDER_TRACKED, LINK_TYPE_EXTERNAL, LINK_TYPE_HARD, LINK_TYPE_SOFT, nMembersInFile, parent
fileFormat, 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, setName
debug, equals, equalsOID, getFID, getFile, getFileFormat, getFullName, getLinkTargetObjName, getName, getOID, getPath, setLinkTargetObjName, setPath, toString
public 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()
MetaDataContainer
public List getMetadata() throws hdf.hdflib.HDFException
MetaDataContainer
Metadata, such as attributes, is stored in a List.
hdf.hdflib.HDFException
public void writeMetadata(Object info) throws Exception
MetaDataContainer
info
- the metadata to write.Exception
- if the metadata can not be writtenpublic void removeMetadata(Object info) throws hdf.hdflib.HDFException
MetaDataContainer
info
- the metadata to delete.hdf.hdflib.HDFException
public void updateMetadata(Object info) throws Exception
MetaDataContainer
info
- the metadata to update.Exception
- if the metadata can not be updatedpublic long open()
HObject
open
in class HObject
HObject.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
Exception
Copyright © 2018. All Rights Reserved.