hdf images hdf images

HDF Object Package

Download

Use and Examples

The design and class hierarchy of the HDF Object Package are described in this document. Refer to Use and Examples for information on using the package.


Overview

The HDF Object Package is a Java package that provides an object-oriented interface to HDF data objects. The package offers a common API to access both HDF4 and HDF5 files.

The HDF Object Package does not provide a one-to-one mapping from Java methods to routines in the standard HDF4 and HDF5 libraries. The one-to-one mappings are provided via the HDF Java Native Interface products Java HDF Interface (JHI) and Java HDF5 Inteface (JHI5). The HDF Object Package wraps these direct mappings with a higher level object model.

The HDF Object Package, ncsa.hdf.object, provides classes that reflect the fundamental objects of the two HDF formats. Fundamental objects from HDF4 (group, multi-dimension array, raster image, vdata, and annotation) and HDF5 (group and dataset) are presented as Java classes in the HDF Object Package.

There are three major advantages offered by the HDF Object Package: