Please see The HDF Group's new Support Portal for the latest information.
The following examples are used for in-house testing, but may be useful to others, as well. They are not included in the HDF-Java source code. To obtain all of them (buildable with CMake) download: hdf-java-examples.tar
HDF5 Native | HDF4 Native | HDF5 Object | HDF4 Object |
Examples Using Native APIs
HDF5
Create file | HDF5FileCreate.java |
Create a dataset | HDF5DatasetCreate.java |
Read a dataset | HDF5DatasetRead.java |
Create an attribute | HDF5AttributeCreate.java |
Create a group | HDF5GroupCreate.java |
Create a file with groups and datasets and retrieve the file structure | HDF5FileStructure.java |
Select a subset | HDF5SubsetSelect.java |
HDF4
Create file | HDF4FileCreate.java |
Create a dataset | HDF4DatasetCreate.java |
Read a dataset | HDF4DatasetRead.java |
Create an attribute | HDF4AttributeCreate.java |
Create a group | HDF4GroupCreate.java |
Create a file with groups and datasets and retrieve the file structure | HDF4FileStructure.java |
Select a subset | HDF4SubsetSelect.java |
Examples Using Object APIs
HDF5
Create file | H5FileCreate.java |
Create a dataset | H5DatasetCreate.java |
Read a dataset | H5DatasetRead.java |
Create an attribute | H5AttributeCreate.java |
Create a group | H5GroupCreate.java |
Create a file with groups and datasets and retrieve the file structure | H5FileStructure.java |
Select a subset | H5SubsetSelect.java |
HDF4
Create file | H4FileCreate.java |
Create a dataset | H4DatasetCreate.java |
Read a dataset | H4DatasetRead.java |
Create an attribute | H4AttributeCreate.java |
Create a group | H4GroupCreate.java |
Create a file with groups and datasets and retrieve the file structure | H4FileStructure.java |
Select a subset | H4SubsetSelect.java |
- - Last modified: 04 November 2016