summaryrefslogtreecommitdiffstats
path: root/java/src/hdf/hdf5lib
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2018-12-17 17:16:59 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2018-12-17 17:16:59 (GMT)
commit8dbadb41a3b23d6d74effee7bef0302fd81b80a6 (patch)
treec15301ff6866509cc6a08a4b52f8599c95d96bf0 /java/src/hdf/hdf5lib
parent1e9efded02415d56bc4cccc5119001fedfb7168f (diff)
downloadhdf5-8dbadb41a3b23d6d74effee7bef0302fd81b80a6.zip
hdf5-8dbadb41a3b23d6d74effee7bef0302fd81b80a6.tar.gz
hdf5-8dbadb41a3b23d6d74effee7bef0302fd81b80a6.tar.bz2
HDFFV-10663 add new function H5Fis_accessible
Diffstat (limited to 'java/src/hdf/hdf5lib')
-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.
*