public class HdfFileFactory
extends java.lang.Object
The HDFFileFactory class contains static methods used to create, open, and close HDF5 files.
Constructor and Description |
---|
HdfFileFactory() |
Modifier and Type | Method and Description |
---|---|
static void |
closeH5File(ncsa.hdf.object.h5.H5File h5File)
Closes an h5File.
|
static ncsa.hdf.object.h5.H5File |
createH5File(java.net.URI uri)
Creates, opens, and returns an H5File from the provided uri.
|
static ncsa.hdf.object.h5.H5File |
openH5File(java.net.URI uri)
Opens and returns an h5File from the provided URI.
|
public static ncsa.hdf.object.h5.H5File createH5File(java.net.URI uri)
Creates, opens, and returns an H5File from the provided uri. If the uri is null, the null is returned. If the FID of resulting h5File is -1, then null is returned. If any Exception is thrown, then null is returned.
uri
- The URI of the H5File to create and open.
An H5File that has been created and opened for read/write operations.
public static void closeH5File(ncsa.hdf.object.h5.H5File h5File)
Closes an h5File.
h5File
- The H5File to close.
public static ncsa.hdf.object.h5.H5File openH5File(java.net.URI uri)
Opens and returns an h5File from the provided URI. If the uri is null, the null is returned. If the File for uri does not exist, then null is returned. If the resulting h5File is null or does not exist, then null is returned. If any Exception is thrown, then null is returned.
uri
- The URI of the H5File to open.
An H5File that has been opened for read/write operations.