Brings java wrapper updates from develop
The wrappers compile but fail tests due to some missing develop functionality
This commit is contained in:
@@ -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 *
|
||||
@@ -65,11 +64,11 @@ public class H5Ex_D_Alloc {
|
||||
}
|
||||
|
||||
private static void allocation() {
|
||||
long file_id = -1;
|
||||
long filespace_id = -1;
|
||||
long dataset_id1 = -1;
|
||||
long dataset_id2 = -1;
|
||||
long dcpl_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long filespace_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataset_id1 = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataset_id2 = HDF5Constants.H5I_INVALID_HID;
|
||||
long dcpl_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long[] dims = { DIM_X, DIM_Y };
|
||||
int[][] dset_data = new int[DIM_X][DIM_Y];
|
||||
int space_status = 0;
|
||||
|
||||
@@ -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 *
|
||||
@@ -93,10 +92,10 @@ public class H5Ex_D_Checksum {
|
||||
}
|
||||
|
||||
private static void writeChecksum() {
|
||||
long file_id = -1;
|
||||
long filespace_id = -1;
|
||||
long dataset_id = -1;
|
||||
long dcpl_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long filespace_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 };
|
||||
long[] chunk_dims = { CHUNK_X, CHUNK_Y };
|
||||
int[][] dset_data = new int[DIM_X][DIM_Y];
|
||||
@@ -193,9 +192,9 @@ public class H5Ex_D_Checksum {
|
||||
}
|
||||
|
||||
private static void readChecksum() {
|
||||
long file_id = -1;
|
||||
long dataset_id = -1;
|
||||
long dcpl_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataset_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dcpl_id = HDF5Constants.H5I_INVALID_HID;
|
||||
int[][] dset_data = new int[DIM_X][DIM_Y];
|
||||
|
||||
// Open an existing file.
|
||||
|
||||
@@ -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 *
|
||||
@@ -66,10 +65,10 @@ public class H5Ex_D_Chunk {
|
||||
}
|
||||
|
||||
private static void writeChunk() {
|
||||
long file_id = -1;
|
||||
long filespace_id = -1;
|
||||
long dataset_id = -1;
|
||||
long dcpl_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long filespace_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 };
|
||||
long[] chunk_dims = { CHUNK_X, CHUNK_Y };
|
||||
int[][] dset_data = new int[DIM_X][DIM_Y];
|
||||
@@ -201,10 +200,10 @@ public class H5Ex_D_Chunk {
|
||||
}
|
||||
|
||||
private static void readChunk() {
|
||||
long file_id = -1;
|
||||
long filespace_id = -1;
|
||||
long dataset_id = -1;
|
||||
long dcpl_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long filespace_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataset_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dcpl_id = HDF5Constants.H5I_INVALID_HID;
|
||||
int[][] dset_data = new int[DIM_X][DIM_Y];
|
||||
|
||||
// Open an existing file.
|
||||
|
||||
@@ -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 *
|
||||
@@ -60,10 +59,10 @@ public class H5Ex_D_Compact {
|
||||
}
|
||||
|
||||
private static void writeCompact() {
|
||||
long file_id = -1;
|
||||
long filespace_id = -1;
|
||||
long dataset_id = -1;
|
||||
long dcpl_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long filespace_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 = new int[DIM_X][DIM_Y];
|
||||
|
||||
@@ -163,10 +162,10 @@ public class H5Ex_D_Compact {
|
||||
}
|
||||
|
||||
private static void readCompact() {
|
||||
long file_id = -1;
|
||||
long filespace_id = -1;
|
||||
long dataset_id = -1;
|
||||
long dcpl_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long filespace_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataset_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dcpl_id = HDF5Constants.H5I_INVALID_HID;
|
||||
int[][] dset_data = new int[DIM_X][DIM_Y];
|
||||
|
||||
// Open file and dataset using the default properties.
|
||||
|
||||
@@ -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 *
|
||||
@@ -34,10 +33,10 @@ public class H5Ex_D_External {
|
||||
private static final int NAME_BUF_SIZE = 32;
|
||||
|
||||
private static void writeExternal() {
|
||||
long file_id = -1;
|
||||
long dcpl_id = -1;
|
||||
long filespace_id = -1;
|
||||
long dataset_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dcpl_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long filespace_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataset_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long[] dims = { DIM_X, DIM_Y };
|
||||
int[][] dset_data = new int[DIM_X][DIM_Y];
|
||||
|
||||
@@ -138,9 +137,9 @@ public class H5Ex_D_External {
|
||||
}
|
||||
|
||||
private static void readExternal() {
|
||||
long file_id = -1;
|
||||
long dcpl_id = -1;
|
||||
long dataset_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dcpl_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataset_id = HDF5Constants.H5I_INVALID_HID;
|
||||
int[][] dset_data = new int[DIM_X][DIM_Y];
|
||||
String[] Xname = new String[1];
|
||||
|
||||
|
||||
@@ -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 *
|
||||
@@ -40,10 +39,10 @@ public class H5Ex_D_FillValue {
|
||||
private static final int FILLVAL = 99;
|
||||
|
||||
private static void fillValue() {
|
||||
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[] extdims = { EDIM_X, EDIM_Y };
|
||||
long[] chunk_dims = { CHUNK_X, CHUNK_Y };
|
||||
|
||||
@@ -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 *
|
||||
@@ -95,10 +94,10 @@ public class H5Ex_D_Gzip {
|
||||
}
|
||||
|
||||
private static void writeGzip() {
|
||||
long file_id = -1;
|
||||
long filespace_id = -1;
|
||||
long dataset_id = -1;
|
||||
long dcpl_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long filespace_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 };
|
||||
long[] chunk_dims = { CHUNK_X, CHUNK_Y };
|
||||
int[][] dset_data = new int[DIM_X][DIM_Y];
|
||||
@@ -196,9 +195,9 @@ public class H5Ex_D_Gzip {
|
||||
}
|
||||
|
||||
private static void readGzip() {
|
||||
long file_id = -1;
|
||||
long dataset_id = -1;
|
||||
long dcpl_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataset_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dcpl_id = HDF5Constants.H5I_INVALID_HID;
|
||||
int[][] dset_data = new int[DIM_X][DIM_Y];
|
||||
|
||||
// Open an existing file.
|
||||
|
||||
@@ -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 *
|
||||
@@ -34,9 +33,9 @@ public class H5Ex_D_Hyperslab {
|
||||
private static final int RANK = 2;
|
||||
|
||||
private static void writeHyperslab() {
|
||||
long file_id = -1;
|
||||
long filespace_id = -1;
|
||||
long dataset_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long filespace_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataset_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long[] dims = { DIM_X, DIM_Y };
|
||||
int[][] dset_data = new int[DIM_X][DIM_Y];
|
||||
|
||||
@@ -142,10 +141,10 @@ public class H5Ex_D_Hyperslab {
|
||||
}
|
||||
|
||||
private static void readHyperslab() {
|
||||
long file_id = -1;
|
||||
long filespace_id = -1;
|
||||
long dataset_id = -1;
|
||||
long dcpl_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long filespace_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataset_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dcpl_id = HDF5Constants.H5I_INVALID_HID;
|
||||
int[][] dset_data = new int[DIM_X][DIM_Y];
|
||||
|
||||
// Open an existing file.
|
||||
|
||||
@@ -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 *
|
||||
@@ -96,11 +95,11 @@ public class H5Ex_D_Nbit {
|
||||
}
|
||||
|
||||
private static void writeData() throws Exception {
|
||||
long file_id = -1;
|
||||
long filespace_id = -1;
|
||||
long dataset_id = -1;
|
||||
long dtype_id = -1;
|
||||
long dcpl_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long filespace_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataset_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dtype_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dcpl_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long[] dims = { DIM_X, DIM_Y };
|
||||
long[] chunk_dims = { CHUNK_X, CHUNK_Y };
|
||||
int[][] dset_data = new int[DIM_X][DIM_Y];
|
||||
@@ -157,9 +156,9 @@ public class H5Ex_D_Nbit {
|
||||
}
|
||||
|
||||
private static void readData() throws Exception {
|
||||
long file_id = -1;
|
||||
long dataset_id = -1;
|
||||
long dcpl_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataset_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dcpl_id = HDF5Constants.H5I_INVALID_HID;
|
||||
int[][] dset_data = new int[DIM_X][DIM_Y];
|
||||
|
||||
// Open an existing file.
|
||||
|
||||
@@ -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 *
|
||||
@@ -32,9 +31,9 @@ public class H5Ex_D_ReadWrite {
|
||||
private static final int RANK = 2;
|
||||
|
||||
private static void WriteDataset() {
|
||||
long file_id = -1;
|
||||
long filespace_id = -1;
|
||||
long dataset_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long filespace_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataset_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long[] dims = { DIM_X, DIM_Y };
|
||||
int[][] dset_data = new int[DIM_X][DIM_Y];
|
||||
|
||||
@@ -109,8 +108,8 @@ public class H5Ex_D_ReadWrite {
|
||||
}
|
||||
|
||||
private static void ReadDataset() {
|
||||
long file_id = -1;
|
||||
long dataset_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataset_id = HDF5Constants.H5I_INVALID_HID;
|
||||
int[][] dset_data = new int[DIM_X][DIM_Y];
|
||||
|
||||
// Open file using the default properties.
|
||||
|
||||
@@ -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 *
|
||||
@@ -122,10 +121,10 @@ public class H5Ex_D_Shuffle {
|
||||
}
|
||||
|
||||
private static void writeShuffle() {
|
||||
long file_id = -1;
|
||||
long filespace_id = -1;
|
||||
long dataset_id = -1;
|
||||
long dcpl_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long filespace_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 };
|
||||
long[] chunk_dims = { CHUNK_X, CHUNK_Y };
|
||||
int[][] dset_data = new int[DIM_X][DIM_Y];
|
||||
@@ -229,9 +228,9 @@ public class H5Ex_D_Shuffle {
|
||||
}
|
||||
|
||||
private static void readShuffle() {
|
||||
long file_id = -1;
|
||||
long dataset_id = -1;
|
||||
long dcpl_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataset_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dcpl_id = HDF5Constants.H5I_INVALID_HID;
|
||||
int[][] dset_data = new int[DIM_X][DIM_Y];
|
||||
|
||||
// Open an existing file.
|
||||
|
||||
@@ -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 *
|
||||
@@ -96,10 +95,10 @@ public class H5Ex_D_Sofloat {
|
||||
}
|
||||
|
||||
private static void writeData() {
|
||||
long file_id = -1;
|
||||
long filespace_id = -1;
|
||||
long dataset_id = -1;
|
||||
long dcpl_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long filespace_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 };
|
||||
long[] chunk_dims = { CHUNK_X, CHUNK_Y };
|
||||
double[][] dset_data = new double[DIM_X][DIM_Y];
|
||||
@@ -213,9 +212,9 @@ public class H5Ex_D_Sofloat {
|
||||
}
|
||||
|
||||
private static void readData() {
|
||||
long file_id = -1;
|
||||
long dataset_id = -1;
|
||||
long dcpl_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataset_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dcpl_id = HDF5Constants.H5I_INVALID_HID;
|
||||
double[][] dset_data = new double[DIM_X][DIM_Y];
|
||||
|
||||
// Open file using the default properties.
|
||||
|
||||
@@ -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 *
|
||||
@@ -96,10 +95,10 @@ public class H5Ex_D_Soint {
|
||||
}
|
||||
|
||||
private static void writeData() {
|
||||
long file_id = -1;
|
||||
long filespace_id = -1;
|
||||
long dataset_id = -1;
|
||||
long dcpl_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long filespace_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 };
|
||||
long[] chunk_dims = { CHUNK_X, CHUNK_Y };
|
||||
int[][] dset_data = new int[DIM_X][DIM_Y];
|
||||
@@ -195,9 +194,9 @@ public class H5Ex_D_Soint {
|
||||
}
|
||||
|
||||
private static void readData() {
|
||||
long file_id = -1;
|
||||
long dataset_id = -1;
|
||||
long dcpl_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataset_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dcpl_id = HDF5Constants.H5I_INVALID_HID;
|
||||
int[][] dset_data = new int[DIM_X][DIM_Y];
|
||||
|
||||
// Open file using the default properties.
|
||||
|
||||
@@ -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 *
|
||||
@@ -95,10 +94,10 @@ public class H5Ex_D_Szip {
|
||||
}
|
||||
|
||||
private static void writeSzip() {
|
||||
long file_id = -1;
|
||||
long filespace_id = -1;
|
||||
long dataset_id = -1;
|
||||
long dcpl_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long filespace_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 };
|
||||
long[] chunk_dims = { CHUNK_X, CHUNK_Y };
|
||||
int[][] dset_data = new int[DIM_X][DIM_Y];
|
||||
@@ -196,9 +195,9 @@ public class H5Ex_D_Szip {
|
||||
}
|
||||
|
||||
private static void readSzip() {
|
||||
long file_id = -1;
|
||||
long dataset_id = -1;
|
||||
long dcpl_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataset_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dcpl_id = HDF5Constants.H5I_INVALID_HID;
|
||||
int[][] dset_data = new int[DIM_X][DIM_Y];
|
||||
|
||||
// Open an existing file.
|
||||
|
||||
@@ -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 *
|
||||
@@ -36,10 +35,10 @@ public class H5Ex_D_Transform {
|
||||
private static String RTRANSFORM = "x-1";
|
||||
|
||||
private static void writeData() {
|
||||
long file_id = -1;
|
||||
long filespace_id = -1;
|
||||
long dataset_id = -1;
|
||||
long dxpl_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long filespace_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataset_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dxpl_id = HDF5Constants.H5I_INVALID_HID;
|
||||
|
||||
long[] dims = { DIM_X, DIM_Y };
|
||||
int[][] dset_data = new int[DIM_X][DIM_Y];
|
||||
@@ -144,9 +143,9 @@ public class H5Ex_D_Transform {
|
||||
|
||||
private static void readData() {
|
||||
|
||||
long file_id = -1;
|
||||
long dataset_id = -1;
|
||||
long dxpl_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataset_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dxpl_id = HDF5Constants.H5I_INVALID_HID;
|
||||
int[][] dset_data = new int[DIM_X][DIM_Y];
|
||||
|
||||
// Open an existing file using the default properties.
|
||||
|
||||
@@ -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 *
|
||||
@@ -39,10 +38,10 @@ public class H5Ex_D_UnlimitedAdd {
|
||||
private static final int NDIMS = 2;
|
||||
|
||||
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 };
|
||||
@@ -143,9 +142,9 @@ public class H5Ex_D_UnlimitedAdd {
|
||||
}
|
||||
|
||||
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 };
|
||||
@@ -293,9 +292,9 @@ public class H5Ex_D_UnlimitedAdd {
|
||||
}
|
||||
|
||||
private static void readUnlimited() {
|
||||
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 };
|
||||
int[][] dset_data;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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 *
|
||||
@@ -39,10 +38,10 @@ public class H5Ex_D_UnlimitedMod {
|
||||
private static final int NDIMS = 2;
|
||||
|
||||
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 };
|
||||
@@ -143,9 +142,9 @@ public class H5Ex_D_UnlimitedMod {
|
||||
}
|
||||
|
||||
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 };
|
||||
int[][] dset_data;
|
||||
@@ -279,9 +278,9 @@ public class H5Ex_D_UnlimitedMod {
|
||||
}
|
||||
|
||||
private static void readUnlimited() {
|
||||
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 };
|
||||
int[][] dset_data;
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
#! /bin/sh
|
||||
#
|
||||
# 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
|
||||
@@ -15,6 +14,7 @@
|
||||
top_builddir=@top_builddir@
|
||||
top_srcdir=@top_srcdir@
|
||||
srcdir=@srcdir@
|
||||
IS_DARWIN="@H5_IS_DARWIN@"
|
||||
|
||||
USE_FILTER_SZIP="@USE_FILTER_SZIP@"
|
||||
USE_FILTER_DEFLATE="@USE_FILTER_DEFLATE@"
|
||||
@@ -36,8 +36,8 @@ nerrors=0
|
||||
|
||||
# where the libs exist
|
||||
HDFLIB_HOME="$top_srcdir/java/lib"
|
||||
BLDLIBDIR="$top_builddir/hdf5/lib"
|
||||
BLDDIR="."
|
||||
BLDLIBDIR="$BLDDIR/testlibs"
|
||||
HDFTEST_HOME="$top_srcdir/java/examples/datasets"
|
||||
JARFILE=jar@PACKAGE_TARNAME@-@PACKAGE_VERSION@.jar
|
||||
TESTJARFILE=jar@PACKAGE_TARNAME@datasets.jar
|
||||
@@ -113,6 +113,13 @@ COPY_LIBFILES_TO_BLDLIBDIR()
|
||||
fi
|
||||
fi
|
||||
done
|
||||
if [ "$IS_DARWIN" = "yes" ]; then
|
||||
(cd $BLDLIBDIR; \
|
||||
install_name_tool -add_rpath @loader_path libhdf5_java.dylib; \
|
||||
exist_path=` otool -l libhdf5_java.dylib | grep libhdf5 | grep -v java | awk '{print $2}'`; \
|
||||
echo $exist_path; \
|
||||
install_name_tool -change $exist_path @rpath/libhdf5.dylib libhdf5_java.dylib)
|
||||
fi
|
||||
# copy jar files. Used -f to make sure get a new copy
|
||||
for tstfile in $COPY_JARTESTFILES
|
||||
do
|
||||
|
||||
Reference in New Issue
Block a user