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(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, 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()
DataFormat
public List getMetadata() throws hdf.hdflib.HDFException
DataFormat
Metadata such as attributes are stored in a List.
hdf.hdflib.HDFException
public void writeMetadata(Object info) throws Exception
DataFormat
info
- the metadata to write.Exception
- if the metadata can not be writtenpublic void removeMetadata(Object info) throws hdf.hdflib.HDFException
DataFormat
info
- the metadata to delete.hdf.hdflib.HDFException
public void updateMetadata(Object info) throws Exception
DataFormat
info
- the metadata to update.Exception
- if the metadata can not be updatedpublic int open()
HObject
open
in class HObject
HObject.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
Exception
Copyright © 2017. All Rights Reserved.