Package hdf.object

Class Datatype

Object
hdf.object.HObject
hdf.object.Datatype
All Implemented Interfaces:
MetaDataContainer, Serializable
Direct Known Subclasses:
FitsDatatype, H4Datatype, H5Datatype, NC2Datatype

public abstract class Datatype extends HObject implements MetaDataContainer
Datatype is an abstract class that defines datatype characteristics and APIs for a data type. A datatype has four basic characteristics: class, size, byte order and sign. These characteristics are defined in the See HDF5 Datatypes in HDF5 User Guide These characteristics apply to all the sub-classes. The sub-classes may have different ways to describe a datatype. We here define the native datatype to the datatype used by the sub-class. For example, H5Datatype uses a datatype identifier (hid_t) to specify a datatype. NC2Datatype uses ucar.nc2.DataType object to describe its datatype. "Native" here is different from the "native" definition in the HDF5 library. Two functions, createNative() and fromNative(), are defined to convert the general characteristics to/from the native datatype. Sub-classes must implement these functions so that the conversion will be done correctly. The values of the CLASS member are not identical to HDF5 values for a datatype class.
Version:
1.1 9/4/2007
Author:
Peter X. Cao
See Also: