summaryrefslogtreecommitdiffstats
path: root/java/src/hdf/hdf5lib/H5.java
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2018-12-17 18:29:50 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2018-12-17 18:29:50 (GMT)
commit59b23c198c4a1b3e91bb6ff540c949c761057c32 (patch)
tree715f7f03e45e1b173b4c95ae0d6dd00928219351 /java/src/hdf/hdf5lib/H5.java
parent339aebc69a3e3493922b58f292a5bf6d3f3f983d (diff)
parent8dbadb41a3b23d6d74effee7bef0302fd81b80a6 (diff)
downloadhdf5-59b23c198c4a1b3e91bb6ff540c949c761057c32.zip
hdf5-59b23c198c4a1b3e91bb6ff540c949c761057c32.tar.gz
hdf5-59b23c198c4a1b3e91bb6ff540c949c761057c32.tar.bz2
Merge pull request #1385 in HDFFV/hdf5 from ~BYRN/hdf5_adb:develop to develop
* commit '8dbadb41a3b23d6d74effee7bef0302fd81b80a6': HDFFV-10663 add new function H5Fis_accessible
Diffstat (limited to 'java/src/hdf/hdf5lib/H5.java')
-rw-r--r--java/src/hdf/hdf5lib/H5.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/java/src/hdf/hdf5lib/H5.java b/java/src/hdf/hdf5lib/H5.java
index 1138e50..bce0034 100644
--- a/java/src/hdf/hdf5lib/H5.java
+++ b/java/src/hdf/hdf5lib/H5.java
@@ -3077,10 +3077,29 @@ public class H5 implements java.io.Serializable {
* - Error from the HDF-5 Library.
* @exception NullPointerException
* - name is null.
+ *
+ * @deprecated As of HDF5 1.10.5 in favor of H5Fis_accessible.
**/
public synchronized static native boolean H5Fis_hdf5(String name) throws HDF5LibraryException, NullPointerException;
/**
+ * H5Fis_accessible determines if the file can be opened with the given fapl.
+ *
+ * @param name
+ * IN: File name to check.
+ * @param file_id
+ * IN: File identifier for a currently-open HDF5 file
+ *
+ * @return true if file is accessible, false if not.
+ *
+ * @exception HDF5LibraryException
+ * - Error from the HDF-5 Library.
+ * @exception NullPointerException
+ * - name is null.
+ **/
+ public synchronized static native boolean H5Fis_accessible(String name, long file_id) throws HDF5LibraryException, NullPointerException;
+
+ /**
* H5Fmount mounts the file specified by child_id onto the group specified by loc_id and name using the mount
* properties plist_id.
*