summaryrefslogtreecommitdiffstats
path: root/java/src/hdf/overview.html
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2017-12-21 19:48:39 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2017-12-21 19:48:49 (GMT)
commit1efe978ae0ea97272d1796e43b1cb1b0f4e58272 (patch)
treefe7bca90f4164b8793178729a507229f87a1aed5 /java/src/hdf/overview.html
parent7cddfb09dbfb472e704e2f64ce81bb6675fb72f2 (diff)
downloadhdf5-1efe978ae0ea97272d1796e43b1cb1b0f4e58272.zip
hdf5-1efe978ae0ea97272d1796e43b1cb1b0f4e58272.tar.gz
hdf5-1efe978ae0ea97272d1796e43b1cb1b0f4e58272.tar.bz2
Fix library interface commands, add missing JNI
Diffstat (limited to 'java/src/hdf/overview.html')
-rw-r--r--java/src/hdf/overview.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/java/src/hdf/overview.html b/java/src/hdf/overview.html
index 39d75b7..9c19442 100644
--- a/java/src/hdf/overview.html
+++ b/java/src/hdf/overview.html
@@ -47,20 +47,20 @@ which has a method:
The native method is implemented in C using the
<a href="http://java.sun.com/javase/6/docs/technotes/guides/jni/index.html">Java
Native Method Interface </a>(JNI). This is written something like the following:
-<pre><b>JNIEXPORT jint
+<pre><b>JNIEXPORT jlong
JNICALL Java_hdf_hdf5lib_H5_H5Fopen
(
&nbsp;JNIEnv *env,
&nbsp;jclass class,
&nbsp;jstring hdfFile,
&nbsp;jint flags,
-&nbsp;jint access)
+&nbsp;jlong access)
&nbsp;{
&nbsp;/* ...convert Java String to (char *) */
&nbsp;/* call the HDF library */
-&nbsp;retVal = H5Fopen((char *)file, (unsigned)flags, (hid_t)access );
+&nbsp;retVal = H5Fopen((char *)file, (unsigned)flags, (hid_t)access);
&nbsp;/* ... */
}</b></pre>