|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectncsa.hdf.object.HObject
ncsa.hdf.object.Group
ncsa.hdf.object.fits.FitsGroup
public class FitsGroup
An H5Group represents HDF5 group, inheriting from Group. Every HDF5 object has at least one name. An HDF5 group is used to store a set of the names together in one place, i.e. a group. The general structure of a group is similar to that of the UNIX file system in that the group may contain references to other groups or data objects just as the UNIX directory may contain subdirectories or files.
Field Summary | |
---|---|
static long |
serialVersionUID
|
Fields inherited from class ncsa.hdf.object.Group |
---|
CRT_ORDER_INDEXED, CRT_ORDER_TRACKED, LINK_TYPE_EXTERNAL, LINK_TYPE_HARD, LINK_TYPE_SOFT |
Fields inherited from class ncsa.hdf.object.HObject |
---|
separator |
Constructor Summary | |
---|---|
FitsGroup(FileFormat fileFormat,
java.lang.String name,
java.lang.String path,
Group parent,
long[] theID)
Constructs an HDF5 group with specific name, path, and parent. |
Method Summary | |
---|---|
void |
close(int gid)
close group access |
static FitsGroup |
create(java.lang.String name,
Group pgroup)
Creates a new group. |
java.util.List |
getMetadata()
Retrieves the metadata such as attributes from file. |
java.util.List |
getMetadata(int... attrPropList)
|
boolean |
hasAttribute()
Check if the object has any attributes attached. |
int |
open()
Opens an existing object such as dataset or group for access. |
void |
removeMetadata(java.lang.Object info)
Deletes an attribute from this dataset. |
void |
writeMetadata(java.lang.Object info)
Creates a new attribute and attached to this dataset if attribute does not exist. |
Methods inherited from class ncsa.hdf.object.Group |
---|
addToMemberList, clear, getMemberList, getNumberOfMembersInFile, getParent, isRoot, removeFromMemberList, setName |
Methods inherited from class ncsa.hdf.object.HObject |
---|
equalsOID, getFID, getFile, getFileFormat, getFullName, getLinkTargetObjName, getName, getOID, getPath, setLinkTargetObjName, setPath, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final long serialVersionUID
Constructor Detail |
---|
public FitsGroup(FileFormat fileFormat, java.lang.String name, java.lang.String path, Group parent, long[] theID)
fileFormat
- the file which containing the group.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.Method Detail |
---|
public boolean hasAttribute()
DataFormat
public java.util.List getMetadata() throws java.lang.Exception
DataFormat
Metadata such as attributes are stored in a List.
java.lang.Exception
public void writeMetadata(java.lang.Object info) throws java.lang.Exception
info
- the atribute to attach
java.lang.Exception
public void removeMetadata(java.lang.Object info) throws java.lang.Exception
info
- the attribute to delete.
java.lang.Exception
public int open()
HObject
open
in class HObject
HObject.close(int)
public void close(int gid)
close
in class HObject
gid
- The object identifier.public static FitsGroup create(java.lang.String name, Group pgroup) throws java.lang.Exception
file
- the file which the group is added to.name
- the name of the group to create.pgroup
- the parent group of the new group.
java.lang.Exception
public java.util.List getMetadata(int... attrPropList) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |