summaryrefslogtreecommitdiffstats
path: root/java/examples/datasets/H5Ex_D_UnlimitedGzip.java
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2021-05-06 21:07:08 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2021-05-06 21:07:08 (GMT)
commitf2cb86499efa2fe6f44ca2f4e93ea62e952d0fb0 (patch)
tree8c26de9faca9450513bf771d36ded0593b66419a /java/examples/datasets/H5Ex_D_UnlimitedGzip.java
parent457b199a383865febbd52045b343b902ef383512 (diff)
downloadhdf5-f2cb86499efa2fe6f44ca2f4e93ea62e952d0fb0.zip
hdf5-f2cb86499efa2fe6f44ca2f4e93ea62e952d0fb0.tar.gz
hdf5-f2cb86499efa2fe6f44ca2f4e93ea62e952d0fb0.tar.bz2
Brings java wrapper updates from develop
The wrappers compile but fail tests due to some missing develop functionality
Diffstat (limited to 'java/examples/datasets/H5Ex_D_UnlimitedGzip.java')
-rw-r--r--java/examples/datasets/H5Ex_D_UnlimitedGzip.java23
1 files changed, 11 insertions, 12 deletions
diff --git a/java/examples/datasets/H5Ex_D_UnlimitedGzip.java b/java/examples/datasets/H5Ex_D_UnlimitedGzip.java
index 40ddc60..675b1ba 100644
--- a/java/examples/datasets/H5Ex_D_UnlimitedGzip.java
+++ b/java/examples/datasets/H5Ex_D_UnlimitedGzip.java
@@ -1,6 +1,5 @@
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Copyright by The HDF Group. *
- * Copyright by the Board of Trustees of the University of Illinois. *
* All rights reserved. *
* *
* This file is part of HDF5. The full HDF5 copyright notice, including *
@@ -99,10 +98,10 @@ public class H5Ex_D_UnlimitedGzip {
}
private static void writeUnlimited() {
- long file_id = -1;
- long dcpl_id = -1;
- long dataspace_id = -1;
- long dataset_id = -1;
+ long file_id = HDF5Constants.H5I_INVALID_HID;
+ long dcpl_id = HDF5Constants.H5I_INVALID_HID;
+ long dataspace_id = HDF5Constants.H5I_INVALID_HID;
+ long dataset_id = HDF5Constants.H5I_INVALID_HID;
long[] dims = { DIM_X, DIM_Y };
long[] chunk_dims = { CHUNK_X, CHUNK_Y };
long[] maxdims = { HDF5Constants.H5S_UNLIMITED, HDF5Constants.H5S_UNLIMITED };
@@ -200,9 +199,9 @@ public class H5Ex_D_UnlimitedGzip {
}
private static void extendUnlimited() {
- long file_id = -1;
- long dataspace_id = -1;
- long dataset_id = -1;
+ long file_id = HDF5Constants.H5I_INVALID_HID;
+ long dataspace_id = HDF5Constants.H5I_INVALID_HID;
+ long dataset_id = HDF5Constants.H5I_INVALID_HID;
long[] dims = { DIM_X, DIM_Y };
long[] extdims = { EDIM_X, EDIM_Y };
long[] start = { 0, 0 };
@@ -350,10 +349,10 @@ public class H5Ex_D_UnlimitedGzip {
}
private static void readUnlimited() {
- long file_id = -1;
- long dataspace_id = -1;
- long dataset_id = -1;
- long dcpl_id = -1;
+ long file_id = HDF5Constants.H5I_INVALID_HID;
+ long dataspace_id = HDF5Constants.H5I_INVALID_HID;
+ long dataset_id = HDF5Constants.H5I_INVALID_HID;
+ long dcpl_id = HDF5Constants.H5I_INVALID_HID;
long[] dims = { DIM_X, DIM_Y };
int[][] dset_data;