public final class HDF5Factory
extends java.lang.Object
IHDF5Factory
for creating writers and readers of HDF5 files. For straight-forward creation, see methods
open(File)
and openForReading(File)
. If you need full control over the creation process, see the methods configure(File)
and configureForReading(File)
.Constructor and Description |
---|
HDF5Factory() |
Modifier and Type | Method and Description |
---|---|
static IHDF5WriterConfigurator |
configure(java.io.File file)
Opens a configurator for an HDF5 file for writing and reading.
|
static IHDF5WriterConfigurator |
configure(java.lang.String filePath)
Opens a configurator for an HDF5 file named filePath for writing and reading.
|
static IHDF5ReaderConfigurator |
configureForReading(java.io.File file)
Opens a configurator for an HDF5 file for reading.
|
static IHDF5ReaderConfigurator |
configureForReading(java.lang.String filePath)
Opens a configurator for an HDF5 file named filePath for reading.
|
static void |
garbageCollect()
H5garbage_collect walks through all the garbage collection routines of the library, freeing any unused memory.
|
static int |
getOpenHDF5FileCount()
Returns the number of open HDF5 files in the library.
|
static boolean |
hasMDCImage(java.io.File file)
Returns
true if the HDF5 file has a metadata cache image. |
static boolean |
hasMDCImage(java.lang.String filePath)
Returns
true if the HDF5 file has a metadata cache image. |
static boolean |
isHDF5File(java.io.File file)
Returns
true , if the file is an HDF5 file and false otherwise. |
static boolean |
isHDF5File(java.lang.String filePath)
Returns
true , if the file named filePath is an HDF5 file and false otherwise. |
static IHDF5Writer |
open(java.io.File file)
Opens an HDF5 file for writing and reading.
|
static IHDF5Writer |
open(java.lang.String filePath)
Opens an HDF5 file named filePath for writing and reading.
|
static IHDF5Reader |
openForReading(java.io.File file)
Opens an HDF5 file for reading.
|
static IHDF5Reader |
openForReading(java.lang.String filePath)
Opens an HDF5 file named filePath for reading.
|
static boolean |
reset()
This function flushes all data to disk, closes all file identifiers, and cleans up all memory used by the library.
|
public static IHDF5Writer open(java.io.File file)
public static IHDF5Writer open(java.lang.String filePath)
public static IHDF5Reader openForReading(java.io.File file)
public static IHDF5Reader openForReading(java.lang.String filePath)
public static IHDF5WriterConfigurator configure(java.io.File file)
IHDF5WriterConfigurator.writer()
in order to start reading and writing the file.public static IHDF5WriterConfigurator configure(java.lang.String filePath)
IHDF5WriterConfigurator.writer()
in order to start reading and writing the file.public static IHDF5ReaderConfigurator configureForReading(java.io.File file)
IHDF5ReaderConfigurator.reader()
in order to start reading the file.public static IHDF5ReaderConfigurator configureForReading(java.lang.String filePath)
IHDF5ReaderConfigurator.reader()
in order to start reading the file.public static boolean isHDF5File(java.io.File file)
true
, if the file is an HDF5 file and false
otherwise.public static boolean isHDF5File(java.lang.String filePath)
true
, if the file named filePath is an HDF5 file and false
otherwise.public static boolean hasMDCImage(java.io.File file)
true
if the HDF5 file has a metadata cache image.public static boolean hasMDCImage(java.lang.String filePath)
true
if the HDF5 file has a metadata cache image.public static int getOpenHDF5FileCount()
public static boolean reset()
The reset will only be performed if the library has no open files.
true
If the reset has been performed and false
otherwise.public static void garbageCollect()
It is not required that H5garbage_collect be called at any particular time; it is only necessary in certain situations where the application has performed actions that cause the library to allocate many objects. The application should call H5garbage_collect if it eventually releases those objects and wants to reduce the memory used by the library from the peak usage required.
The library automatically garbage collects all the free lists when the application ends.