The problem with wrapping this function in Java is that the argument is a structure with references to function pointers. It is these function pointers that cannot be easily matched within Java. The void* argument itself can easily be specified for Java to C conversion.
Suggestions are welcomed. Allen On Wednesday, December 24, 2014 06:27:11 PM Ching-Chia Wang wrote: > Hello, > > I am working on a project to write/read hdf5 files with LZO compression. I > have figured out the writing part. It is done by dynamically registering > the LZO filter callbacks. The writing is all in C. > > For the reading, I need to integrate this with JAVA. I checked the HDF5 > JAVA API, unfortunately the H5Zregister() function is not supported. ( > http://www.hdfgroup.org/products/java/JNI/jhi5/jhi5_unsupported_functions.ht > ml). > > > I do not have much experience with Jave Native Interface, but it may be > feasible to write a JAVA Native Interface wrapper class around a C reader > class. > > Any one has dealt with this problem before? _______________________________________________ Hdf-forum is for HDF software users discussion. [email protected] http://mail.lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org Twitter: https://twitter.com/hdf5
