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
|
||||
|
||||
@@ -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,11 +33,11 @@ public class H5Ex_T_Array {
|
||||
private static final int NDIMS = 2;
|
||||
|
||||
private static void CreateDataset() {
|
||||
long file_id = -1;
|
||||
long filetype_id = -1;
|
||||
long memtype_id = -1;
|
||||
long dataspace_id = -1;
|
||||
long dataset_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long filetype_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long memtype_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataspace_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataset_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long[] dims = { DIM0 };
|
||||
long[] adims = { ADIM0, ADIM1 };
|
||||
int[][][] dset_data = new int[DIM0][ADIM0][ADIM1];
|
||||
@@ -152,10 +151,10 @@ public class H5Ex_T_Array {
|
||||
}
|
||||
|
||||
private static void ReadDataset() {
|
||||
long file_id = -1;
|
||||
long filetype_id = -1;
|
||||
long memtype_id = -1;
|
||||
long dataset_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long filetype_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long memtype_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataset_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long[] dims = { DIM0 };
|
||||
long[] adims = { ADIM0, ADIM1 };
|
||||
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 *
|
||||
@@ -35,12 +34,12 @@ public class H5Ex_T_ArrayAttribute {
|
||||
private static final int NDIMS = 2;
|
||||
|
||||
private static void CreateDataset() {
|
||||
long file_id = -1;
|
||||
long filetype_id = -1;
|
||||
long memtype_id = -1;
|
||||
long dataspace_id = -1;
|
||||
long dataset_id = -1;
|
||||
long attribute_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long filetype_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long memtype_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataspace_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataset_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long attribute_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long[] dims = { DIM0 };
|
||||
long[] adims = { ADIM0, ADIM1 };
|
||||
int[][][] dset_data = new int[DIM0][ADIM0][ADIM1];
|
||||
@@ -84,7 +83,7 @@ public class H5Ex_T_ArrayAttribute {
|
||||
dataset_id = H5.H5Dcreate(file_id, DATASETNAME, HDF5Constants.H5T_STD_I32LE, dataspace_id,
|
||||
HDF5Constants.H5P_DEFAULT, HDF5Constants.H5P_DEFAULT, HDF5Constants.H5P_DEFAULT);
|
||||
H5.H5Sclose(dataspace_id);
|
||||
dataspace_id = -1;
|
||||
dataspace_id = HDF5Constants.H5I_INVALID_HID;
|
||||
}
|
||||
}
|
||||
catch (Exception e) {
|
||||
@@ -175,11 +174,11 @@ public class H5Ex_T_ArrayAttribute {
|
||||
}
|
||||
|
||||
private static void ReadDataset() {
|
||||
long file_id = -1;
|
||||
long filetype_id = -1;
|
||||
long memtype_id = -1;
|
||||
long dataset_id = -1;
|
||||
long attribute_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long filetype_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long memtype_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataset_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long attribute_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long[] dims = { DIM0 };
|
||||
long[] adims = { ADIM0, ADIM1 };
|
||||
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 *
|
||||
@@ -32,9 +31,9 @@ public class H5Ex_T_Bit {
|
||||
private static final int RANK = 2;
|
||||
|
||||
private static void CreateDataset() {
|
||||
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 = { DIM0, DIM1 };
|
||||
int[][] dset_data = new int[DIM0][DIM1];
|
||||
|
||||
@@ -116,9 +115,9 @@ public class H5Ex_T_Bit {
|
||||
}
|
||||
|
||||
private static void ReadDataset() {
|
||||
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 = { DIM0, DIM1 };
|
||||
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 *
|
||||
@@ -33,10 +32,10 @@ public class H5Ex_T_BitAttribute {
|
||||
private static final int RANK = 2;
|
||||
|
||||
private static void CreateDataset() {
|
||||
long file_id = -1;
|
||||
long dataspace_id = -1;
|
||||
long dataset_id = -1;
|
||||
long attribute_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataspace_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataset_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long attribute_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long[] dims = { DIM0, DIM1 };
|
||||
int[][] dset_data = new int[DIM0][DIM1];
|
||||
|
||||
@@ -66,7 +65,7 @@ public class H5Ex_T_BitAttribute {
|
||||
dataset_id = H5.H5Dcreate(file_id, DATASETNAME, HDF5Constants.H5T_STD_I32LE, dataspace_id,
|
||||
HDF5Constants.H5P_DEFAULT, HDF5Constants.H5P_DEFAULT, HDF5Constants.H5P_DEFAULT);
|
||||
H5.H5Sclose(dataspace_id);
|
||||
dataspace_id = -1;
|
||||
dataspace_id = HDF5Constants.H5I_INVALID_HID;
|
||||
}
|
||||
}
|
||||
catch (Exception e) {
|
||||
@@ -139,10 +138,10 @@ public class H5Ex_T_BitAttribute {
|
||||
}
|
||||
|
||||
private static void ReadDataset() {
|
||||
long file_id = -1;
|
||||
long dataspace_id = -1;
|
||||
long dataset_id = -1;
|
||||
long attribute_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataspace_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataset_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long attribute_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long[] dims = { DIM0, DIM1 };
|
||||
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 *
|
||||
@@ -101,9 +100,9 @@ public class H5Ex_T_Commit {
|
||||
}
|
||||
|
||||
private static void CreateDataType() {
|
||||
long file_id = -1;
|
||||
long strtype_id = -1;
|
||||
long filetype_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long strtype_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long filetype_id = HDF5Constants.H5I_INVALID_HID;
|
||||
Sensor_Datatype datatypes = new Sensor_Datatype();
|
||||
// Create a new file using default properties.
|
||||
try {
|
||||
@@ -183,9 +182,9 @@ public class H5Ex_T_Commit {
|
||||
}
|
||||
|
||||
private static void ReadDataType() {
|
||||
long file_id = -1;
|
||||
long typeclass_id = -1;
|
||||
long filetype_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long typeclass_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long filetype_id = HDF5Constants.H5I_INVALID_HID;
|
||||
|
||||
// Open an existing file.
|
||||
try {
|
||||
|
||||
@@ -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,12 +121,12 @@ public class H5Ex_T_Compound {
|
||||
}
|
||||
|
||||
private static void CreateDataset() {
|
||||
long file_id = -1;
|
||||
long strtype_id = -1;
|
||||
long memtype_id = -1;
|
||||
long filetype_id = -1;
|
||||
long dataspace_id = -1;
|
||||
long dataset_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long strtype_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long memtype_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long filetype_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataspace_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataset_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long[] dims = { DIM0 };
|
||||
Sensor[] object_data = new Sensor[DIM0];
|
||||
byte[] dset_data = null;
|
||||
@@ -286,11 +285,11 @@ public class H5Ex_T_Compound {
|
||||
}
|
||||
|
||||
private static void ReadDataset() {
|
||||
long file_id = -1;
|
||||
long strtype_id = -1;
|
||||
long memtype_id = -1;
|
||||
long dataspace_id = -1;
|
||||
long dataset_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long strtype_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long memtype_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataspace_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataset_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long[] dims = { DIM0 };
|
||||
Sensor[] object_data2;
|
||||
byte[] 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 *
|
||||
@@ -125,13 +124,13 @@ public class H5Ex_T_CompoundAttribute {
|
||||
}
|
||||
|
||||
private static void CreateDataset() {
|
||||
long file_id = -1;
|
||||
long strtype_id = -1;
|
||||
long memtype_id = -1;
|
||||
long filetype_id = -1;
|
||||
long dataspace_id = -1;
|
||||
long dataset_id = -1;
|
||||
long attribute_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long strtype_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long memtype_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long filetype_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataspace_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataset_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long attribute_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long[] dims = { DIM0 };
|
||||
Sensor[] object_data = new Sensor[DIM0];
|
||||
byte[] dset_data = null;
|
||||
@@ -205,7 +204,7 @@ public class H5Ex_T_CompoundAttribute {
|
||||
dataset_id = H5.H5Dcreate(file_id, DATASETNAME, HDF5Constants.H5T_STD_I32LE, dataspace_id,
|
||||
HDF5Constants.H5P_DEFAULT, HDF5Constants.H5P_DEFAULT, HDF5Constants.H5P_DEFAULT);
|
||||
H5.H5Sclose(dataspace_id);
|
||||
dataspace_id = -1;
|
||||
dataspace_id = HDF5Constants.H5I_INVALID_HID;
|
||||
}
|
||||
}
|
||||
catch (Exception e) {
|
||||
@@ -310,12 +309,12 @@ public class H5Ex_T_CompoundAttribute {
|
||||
}
|
||||
|
||||
private static void ReadDataset() {
|
||||
long file_id = -1;
|
||||
long strtype_id = -1;
|
||||
long memtype_id = -1;
|
||||
long dataspace_id = -1;
|
||||
long dataset_id = -1;
|
||||
long attribute_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long strtype_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long memtype_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataspace_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataset_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long attribute_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long[] dims = { DIM0 };
|
||||
Sensor[] object_data2;
|
||||
byte[] 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 *
|
||||
@@ -36,9 +35,9 @@ public class H5Ex_T_Float {
|
||||
private static final int RANK = 2;
|
||||
|
||||
private static void CreateDataset() {
|
||||
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 = { DIM0, DIM1 };
|
||||
double[][] dset_data = new double[DIM0][DIM1];
|
||||
|
||||
@@ -120,9 +119,9 @@ public class H5Ex_T_Float {
|
||||
}
|
||||
|
||||
private static void ReadDataset() {
|
||||
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 = { DIM0, DIM1 };
|
||||
double[][] 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 *
|
||||
@@ -37,10 +36,10 @@ public class H5Ex_T_FloatAttribute {
|
||||
private static final int RANK = 2;
|
||||
|
||||
private static void CreateDataset() {
|
||||
long file_id = -1;
|
||||
long dataspace_id = -1;
|
||||
long dataset_id = -1;
|
||||
long attribute_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataspace_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataset_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long attribute_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long[] dims = { DIM0, DIM1 };
|
||||
double[][] dset_data = new double[DIM0][DIM1];
|
||||
|
||||
@@ -66,7 +65,7 @@ public class H5Ex_T_FloatAttribute {
|
||||
dataset_id = H5.H5Dcreate(file_id, DATASETNAME, HDF5Constants.H5T_STD_I32LE, dataspace_id,
|
||||
HDF5Constants.H5P_DEFAULT, HDF5Constants.H5P_DEFAULT, HDF5Constants.H5P_DEFAULT);
|
||||
H5.H5Sclose(dataspace_id);
|
||||
dataspace_id = -1;
|
||||
dataspace_id = HDF5Constants.H5I_INVALID_HID;
|
||||
}
|
||||
}
|
||||
catch (Exception e) {
|
||||
@@ -139,10 +138,10 @@ public class H5Ex_T_FloatAttribute {
|
||||
}
|
||||
|
||||
private static void ReadDataset() {
|
||||
long file_id = -1;
|
||||
long dataspace_id = -1;
|
||||
long dataset_id = -1;
|
||||
long attribute_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataspace_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataset_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long attribute_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long[] dims = { DIM0, DIM1 };
|
||||
double[][] 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 *
|
||||
@@ -34,9 +33,9 @@ public class H5Ex_T_Integer {
|
||||
private static final int RANK = 2;
|
||||
|
||||
private static void CreateDataset() {
|
||||
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 = { DIM0, DIM1 };
|
||||
int[][] dset_data = new int[DIM0][DIM1];
|
||||
|
||||
@@ -117,9 +116,9 @@ public class H5Ex_T_Integer {
|
||||
}
|
||||
|
||||
private static void ReadDataset() {
|
||||
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 = { DIM0, DIM1 };
|
||||
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 *
|
||||
@@ -35,10 +34,10 @@ public class H5Ex_T_IntegerAttribute {
|
||||
private static final int RANK = 2;
|
||||
|
||||
private static void CreateDataset() {
|
||||
long file_id = -1;
|
||||
long dataspace_id = -1;
|
||||
long dataset_id = -1;
|
||||
long attribute_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataspace_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataset_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long attribute_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long[] dims = { DIM0, DIM1 };
|
||||
int[][] dset_data = new int[DIM0][DIM1];
|
||||
|
||||
@@ -64,7 +63,7 @@ public class H5Ex_T_IntegerAttribute {
|
||||
dataset_id = H5.H5Dcreate(file_id, DATASETNAME, HDF5Constants.H5T_STD_I32LE, dataspace_id,
|
||||
HDF5Constants.H5P_DEFAULT, HDF5Constants.H5P_DEFAULT, HDF5Constants.H5P_DEFAULT);
|
||||
H5.H5Sclose(dataspace_id);
|
||||
dataspace_id = -1;
|
||||
dataspace_id = HDF5Constants.H5I_INVALID_HID;
|
||||
}
|
||||
}
|
||||
catch (Exception e) {
|
||||
@@ -137,10 +136,10 @@ public class H5Ex_T_IntegerAttribute {
|
||||
}
|
||||
|
||||
private static void ReadDataset() {
|
||||
long file_id = -1;
|
||||
long dataspace_id = -1;
|
||||
long dataset_id = -1;
|
||||
long attribute_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataspace_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataset_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long attribute_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long[] dims = { DIM0, DIM1 };
|
||||
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 *
|
||||
@@ -65,11 +64,11 @@ public class H5Ex_T_ObjectReference {
|
||||
}
|
||||
|
||||
private static void writeObjRef() {
|
||||
long file_id = -1;
|
||||
long dataspace_id = -1;
|
||||
long filespace_id = -1;
|
||||
long group_id = -1;
|
||||
long dataset_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataspace_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long filespace_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long group_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataset_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long[] dims = { DIM0 };
|
||||
byte[][] dset_data = new byte[DIM0][8];
|
||||
|
||||
@@ -90,9 +89,9 @@ public class H5Ex_T_ObjectReference {
|
||||
HDF5Constants.H5P_DEFAULT, HDF5Constants.H5P_DEFAULT, HDF5Constants.H5P_DEFAULT);
|
||||
if (dataset_id >= 0)
|
||||
H5.H5Dclose(dataset_id);
|
||||
dataset_id = -1;
|
||||
dataset_id = HDF5Constants.H5I_INVALID_HID;
|
||||
H5.H5Sclose(dataspace_id);
|
||||
dataspace_id = -1;
|
||||
dataspace_id = HDF5Constants.H5I_INVALID_HID;
|
||||
}
|
||||
}
|
||||
catch (Exception e) {
|
||||
@@ -106,7 +105,7 @@ public class H5Ex_T_ObjectReference {
|
||||
HDF5Constants.H5P_DEFAULT);
|
||||
if (group_id >= 0)
|
||||
H5.H5Gclose(group_id);
|
||||
group_id = -1;
|
||||
group_id = HDF5Constants.H5I_INVALID_HID;
|
||||
}
|
||||
catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
@@ -187,11 +186,11 @@ public class H5Ex_T_ObjectReference {
|
||||
}
|
||||
|
||||
private static void readObjRef() {
|
||||
long file_id = -1;
|
||||
long dataset_id = -1;
|
||||
long dataspace_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataset_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataspace_id = HDF5Constants.H5I_INVALID_HID;
|
||||
int object_type = -1;
|
||||
long object_id = -1;
|
||||
long object_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long[] dims = { DIM0 };
|
||||
byte[][] 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 *
|
||||
@@ -67,11 +66,11 @@ public class H5Ex_T_ObjectReferenceAttribute {
|
||||
}
|
||||
|
||||
private static void CreateDataset() {
|
||||
long file_id = -1;
|
||||
long dataspace_id = -1;
|
||||
long group_id = -1;
|
||||
long dataset_id = -1;
|
||||
long attribute_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataspace_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long group_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataset_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long attribute_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long[] dims = { DIM0 };
|
||||
byte[][] dset_data = new byte[DIM0][8];
|
||||
|
||||
@@ -92,9 +91,9 @@ public class H5Ex_T_ObjectReferenceAttribute {
|
||||
HDF5Constants.H5P_DEFAULT, HDF5Constants.H5P_DEFAULT, HDF5Constants.H5P_DEFAULT);
|
||||
if (dataset_id >= 0)
|
||||
H5.H5Dclose(dataset_id);
|
||||
dataset_id = -1;
|
||||
dataset_id = HDF5Constants.H5I_INVALID_HID;
|
||||
H5.H5Sclose(dataspace_id);
|
||||
dataspace_id = -1;
|
||||
dataspace_id = HDF5Constants.H5I_INVALID_HID;
|
||||
}
|
||||
}
|
||||
catch (Exception e) {
|
||||
@@ -108,7 +107,7 @@ public class H5Ex_T_ObjectReferenceAttribute {
|
||||
HDF5Constants.H5P_DEFAULT);
|
||||
if (group_id >= 0)
|
||||
H5.H5Gclose(group_id);
|
||||
group_id = -1;
|
||||
group_id = HDF5Constants.H5I_INVALID_HID;
|
||||
}
|
||||
catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
@@ -139,7 +138,7 @@ public class H5Ex_T_ObjectReferenceAttribute {
|
||||
dataset_id = H5.H5Dcreate(file_id, DATASETNAME, HDF5Constants.H5T_STD_I32LE, dataspace_id,
|
||||
HDF5Constants.H5P_DEFAULT, HDF5Constants.H5P_DEFAULT, HDF5Constants.H5P_DEFAULT);
|
||||
H5.H5Sclose(dataspace_id);
|
||||
dataspace_id = -1;
|
||||
dataspace_id = HDF5Constants.H5I_INVALID_HID;
|
||||
}
|
||||
}
|
||||
catch (Exception e) {
|
||||
@@ -212,12 +211,12 @@ public class H5Ex_T_ObjectReferenceAttribute {
|
||||
}
|
||||
|
||||
private static void ReadDataset() {
|
||||
long file_id = -1;
|
||||
long dataspace_id = -1;
|
||||
long dataset_id = -1;
|
||||
long attribute_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataspace_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataset_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long attribute_id = HDF5Constants.H5I_INVALID_HID;
|
||||
int object_type = -1;
|
||||
long object_id = -1;
|
||||
long object_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long[] dims = { DIM0 };
|
||||
byte[][] 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 *
|
||||
@@ -32,10 +31,10 @@ public class H5Ex_T_Opaque {
|
||||
private static final int RANK = 1;
|
||||
|
||||
private static void CreateDataset() {
|
||||
long file_id = -1;
|
||||
long dataspace_id = -1;
|
||||
long datatype_id = -1;
|
||||
long dataset_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataspace_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long datatype_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataset_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long[] dims = { DIM0 };
|
||||
byte[] dset_data = new byte[DIM0 * LEN];
|
||||
byte[] str_data = { 'O', 'P', 'A', 'Q', 'U', 'E' };
|
||||
@@ -138,11 +137,11 @@ public class H5Ex_T_Opaque {
|
||||
}
|
||||
|
||||
private static void ReadDataset() {
|
||||
long file_id = -1;
|
||||
long datatype_id = -1;
|
||||
long dataspace_id = -1;
|
||||
long dataset_id = -1;
|
||||
long type_len = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long datatype_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataspace_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataset_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long type_len = HDF5Constants.H5I_INVALID_HID;
|
||||
long[] dims = { DIM0 };
|
||||
byte[] dset_data;
|
||||
String tag_name = null;
|
||||
|
||||
@@ -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 *
|
||||
@@ -33,11 +32,11 @@ public class H5Ex_T_OpaqueAttribute {
|
||||
private static final int RANK = 1;
|
||||
|
||||
private static void CreateDataset() {
|
||||
long file_id = -1;
|
||||
long dataspace_id = -1;
|
||||
long datatype_id = -1;
|
||||
long dataset_id = -1;
|
||||
long attribute_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataspace_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long datatype_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataset_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long attribute_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long[] dims = { DIM0 };
|
||||
byte[] dset_data = new byte[DIM0 * LEN];
|
||||
byte[] str_data = { 'O', 'P', 'A', 'Q', 'U', 'E' };
|
||||
@@ -65,7 +64,7 @@ public class H5Ex_T_OpaqueAttribute {
|
||||
dataset_id = H5.H5Dcreate(file_id, DATASETNAME, HDF5Constants.H5T_STD_I32LE, dataspace_id,
|
||||
HDF5Constants.H5P_DEFAULT, HDF5Constants.H5P_DEFAULT, HDF5Constants.H5P_DEFAULT);
|
||||
H5.H5Sclose(dataspace_id);
|
||||
dataspace_id = -1;
|
||||
dataspace_id = HDF5Constants.H5I_INVALID_HID;
|
||||
}
|
||||
}
|
||||
catch (Exception e) {
|
||||
@@ -158,11 +157,11 @@ public class H5Ex_T_OpaqueAttribute {
|
||||
}
|
||||
|
||||
private static void ReadDataset() {
|
||||
long file_id = -1;
|
||||
long datatype_id = -1;
|
||||
long dataspace_id = -1;
|
||||
long dataset_id = -1;
|
||||
long attribute_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long datatype_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataspace_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataset_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long attribute_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long type_len = -1;
|
||||
long[] dims = { DIM0 };
|
||||
byte[] 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 *
|
||||
@@ -32,11 +31,11 @@ public class H5Ex_T_String {
|
||||
private static final int RANK = 1;
|
||||
|
||||
private static void CreateDataset() {
|
||||
long file_id = -1;
|
||||
long memtype_id = -1;
|
||||
long filetype_id = -1;
|
||||
long dataspace_id = -1;
|
||||
long dataset_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long memtype_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long filetype_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataspace_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataset_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long[] dims = { DIM0 };
|
||||
byte[][] dset_data = new byte[DIM0][SDIM];
|
||||
StringBuffer[] str_data = { new StringBuffer("Parting"), new StringBuffer("is such"),
|
||||
@@ -156,11 +155,11 @@ public class H5Ex_T_String {
|
||||
}
|
||||
|
||||
private static void ReadDataset() {
|
||||
long file_id = -1;
|
||||
long filetype_id = -1;
|
||||
long memtype_id = -1;
|
||||
long dataspace_id = -1;
|
||||
long dataset_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long filetype_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long memtype_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataspace_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataset_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long sdim = 0;
|
||||
long[] dims = { DIM0 };
|
||||
byte[][] 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 *
|
||||
@@ -33,12 +32,12 @@ public class H5Ex_T_StringAttribute {
|
||||
private static final int RANK = 1;
|
||||
|
||||
private static void CreateDataset() {
|
||||
long file_id = -1;
|
||||
long memtype_id = -1;
|
||||
long filetype_id = -1;
|
||||
long dataspace_id = -1;
|
||||
long dataset_id = -1;
|
||||
long attribute_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long memtype_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long filetype_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataspace_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataset_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long attribute_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long[] dims = { DIM0 };
|
||||
byte[][] dset_data = new byte[DIM0][SDIM];
|
||||
StringBuffer[] str_data = { new StringBuffer("Parting"), new StringBuffer("is such"),
|
||||
@@ -80,7 +79,7 @@ public class H5Ex_T_StringAttribute {
|
||||
dataset_id = H5.H5Dcreate(file_id, DATASETNAME, HDF5Constants.H5T_STD_I32LE, dataspace_id,
|
||||
HDF5Constants.H5P_DEFAULT, HDF5Constants.H5P_DEFAULT, HDF5Constants.H5P_DEFAULT);
|
||||
H5.H5Sclose(dataspace_id);
|
||||
dataspace_id = -1;
|
||||
dataspace_id = HDF5Constants.H5I_INVALID_HID;
|
||||
}
|
||||
}
|
||||
catch (Exception e) {
|
||||
@@ -179,12 +178,12 @@ public class H5Ex_T_StringAttribute {
|
||||
}
|
||||
|
||||
private static void ReadDataset() {
|
||||
long file_id = -1;
|
||||
long filetype_id = -1;
|
||||
long memtype_id = -1;
|
||||
long dataspace_id = -1;
|
||||
long dataset_id = -1;
|
||||
long attribute_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long filetype_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long memtype_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataspace_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataset_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long attribute_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long sdim = 0;
|
||||
long[] dims = { DIM0 };
|
||||
byte[][] 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 *
|
||||
@@ -26,10 +25,10 @@ public class H5Ex_T_VLString
|
||||
private static String DATASETNAME = "DS1";
|
||||
|
||||
private static void createDataset() {
|
||||
long file_id = -1;
|
||||
long type_id = -1;
|
||||
long dataspace_id = -1;
|
||||
long dataset_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long type_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataspace_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataset_id = HDF5Constants.H5I_INVALID_HID;
|
||||
int rank = 1;
|
||||
String[] str_data = { "Parting", "is such", "sweet", "sorrow." };
|
||||
long[] dims = { str_data.length };
|
||||
@@ -93,9 +92,9 @@ public class H5Ex_T_VLString
|
||||
}
|
||||
|
||||
private static void readDataset() {
|
||||
long file_id = -1;
|
||||
long type_id = -1;
|
||||
long dataset_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long type_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataset_id = HDF5Constants.H5I_INVALID_HID;
|
||||
String[] str_data = { "", "", "", "" };
|
||||
|
||||
try {
|
||||
|
||||
@@ -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@"
|
||||
|
||||
TESTNAME=EX_Datatypes
|
||||
EXIT_SUCCESS=0
|
||||
@@ -33,8 +33,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/datatypes"
|
||||
JARFILE=jar@PACKAGE_TARNAME@-@PACKAGE_VERSION@.jar
|
||||
TESTJARFILE=jar@PACKAGE_TARNAME@datatypes.jar
|
||||
@@ -110,6 +110,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
|
||||
|
||||
@@ -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,9 +59,9 @@ public class H5Ex_G_Compact {
|
||||
}
|
||||
|
||||
public static void CreateGroup() {
|
||||
long file_id = -1;
|
||||
long group_id = -1;
|
||||
long fapl_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long group_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long fapl_id = HDF5Constants.H5I_INVALID_HID;
|
||||
H5G_info_t ginfo;
|
||||
long size;
|
||||
|
||||
|
||||
@@ -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 *
|
||||
@@ -25,10 +24,10 @@ public class H5Ex_G_Corder {
|
||||
private static String FILE = "H5Ex_G_Corder.h5";
|
||||
|
||||
private static void CreateGroup() throws Exception {
|
||||
long file_id = -1;
|
||||
long group_id = -1;
|
||||
long subgroup_id = -1;
|
||||
long gcpl_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long group_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long subgroup_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long gcpl_id = HDF5Constants.H5I_INVALID_HID;
|
||||
int status;
|
||||
H5G_info_t ginfo;
|
||||
int i;
|
||||
|
||||
@@ -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 *
|
||||
@@ -25,8 +24,8 @@ public class H5Ex_G_Create {
|
||||
private static String GROUPNAME = "G1";
|
||||
|
||||
private static void CreateGroup() {
|
||||
long file_id = -1;
|
||||
long group_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long group_id = HDF5Constants.H5I_INVALID_HID;
|
||||
|
||||
// Create a new file using default properties.
|
||||
try {
|
||||
|
||||
@@ -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 *
|
||||
@@ -31,9 +30,9 @@ public class H5Ex_G_Intermediate {
|
||||
|
||||
private void CreateGroup() throws Exception {
|
||||
|
||||
long file_id = -1;
|
||||
long group_id = -1;
|
||||
long gcpl_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long group_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long gcpl_id = HDF5Constants.H5I_INVALID_HID;
|
||||
|
||||
try {
|
||||
// Create a new file_id 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 *
|
||||
@@ -58,7 +57,7 @@ public class H5Ex_G_Iterate {
|
||||
}
|
||||
|
||||
private static void do_iterate() {
|
||||
long file_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
|
||||
// Open a file using default properties.
|
||||
try {
|
||||
|
||||
@@ -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,11 +59,11 @@ public class H5Ex_G_Phase {
|
||||
}
|
||||
|
||||
private static void CreateGroup() {
|
||||
long file_id = -1;
|
||||
long group_id = -1;
|
||||
long subgroup_id = -1;
|
||||
long fapl_id = -1;
|
||||
long gcpl_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long group_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long subgroup_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long fapl_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long gcpl_id = HDF5Constants.H5I_INVALID_HID;
|
||||
H5G_info_t ginfo;
|
||||
String name = "G0"; // Name of subgroup_id
|
||||
int i;
|
||||
|
||||
@@ -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 *
|
||||
@@ -43,7 +42,7 @@ public class H5Ex_G_Traverse {
|
||||
public static H5L_iterate_t iter_cb = new H5L_iter_callbackT();
|
||||
|
||||
private static void OpenGroup() {
|
||||
long file_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
H5O_info_t infobuf;
|
||||
opdata od = new opdata();
|
||||
|
||||
|
||||
@@ -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 *
|
||||
@@ -47,7 +46,7 @@ public class H5Ex_G_Visit {
|
||||
|
||||
private void VisitGroup() throws Exception {
|
||||
|
||||
long file_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
|
||||
try {
|
||||
// Open file
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
top_builddir=@top_builddir@
|
||||
top_srcdir=@top_srcdir@
|
||||
srcdir=@srcdir@
|
||||
IS_DARWIN="@H5_IS_DARWIN@"
|
||||
|
||||
TESTNAME=EX_Groups
|
||||
EXIT_SUCCESS=0
|
||||
@@ -32,9 +33,9 @@ nerrors=0
|
||||
|
||||
# where the libs exist
|
||||
HDFLIB_HOME="$top_srcdir/java/lib"
|
||||
BLDLIBDIR="$top_builddir/hdf5/lib"
|
||||
BLDITERDIR="./groups"
|
||||
BLDDIR="."
|
||||
BLDLIBDIR="$BLDDIR/testlibs"
|
||||
BLDITERDIR="./groups"
|
||||
HDFTEST_HOME="$top_srcdir/java/examples/groups"
|
||||
JARFILE=jar@PACKAGE_TARNAME@-@PACKAGE_VERSION@.jar
|
||||
TESTJARFILE=jar@PACKAGE_TARNAME@groups.jar
|
||||
@@ -104,6 +105,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
|
||||
|
||||
@@ -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 *
|
||||
@@ -28,10 +27,10 @@ public class H5_CreateAttribute {
|
||||
private static String DATASETATTRIBUTE = "Units";
|
||||
|
||||
private static void CreateDatasetAttribute() {
|
||||
long file_id = -1;
|
||||
long dataspace_id = -1;
|
||||
long dataset_id = -1;
|
||||
long attribute_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataspace_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataset_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long attribute_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long[] dims1 = { DIM_X, DIM_Y };
|
||||
long[] dims = { 2 };
|
||||
int[] attr_data = { 100, 200 };
|
||||
|
||||
@@ -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 *
|
||||
@@ -27,9 +26,9 @@ public class H5_CreateDataset {
|
||||
private static final int DIM_Y = 6;
|
||||
|
||||
private static void CreateDataset() {
|
||||
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 };
|
||||
|
||||
// Create a new file using 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 *
|
||||
@@ -24,7 +23,7 @@ public class H5_CreateFile {
|
||||
static final String FILENAME = "H5_CreateFile.h5";
|
||||
|
||||
private static void CreateFile() {
|
||||
long file_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
|
||||
// Create a new file using default properties.
|
||||
try {
|
||||
|
||||
@@ -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 *
|
||||
@@ -25,8 +24,8 @@ public class H5_CreateGroup {
|
||||
private static String GROUPNAME = "MyGroup";
|
||||
|
||||
private static void CreateGroup() {
|
||||
long file_id = -1;
|
||||
long group_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long group_id = HDF5Constants.H5I_INVALID_HID;
|
||||
|
||||
// Create a new file using default properties.
|
||||
try {
|
||||
|
||||
@@ -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 *
|
||||
@@ -27,10 +26,10 @@ public class H5_CreateGroupAbsoluteRelative {
|
||||
private static String GROUPNAME_B = "GroupB";
|
||||
|
||||
private static void CreateGroupAbsoluteAndRelative() {
|
||||
long file_id = -1;
|
||||
long group1_id = -1;
|
||||
long group2_id = -1;
|
||||
long group3_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long group1_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long group2_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long group3_id = HDF5Constants.H5I_INVALID_HID;
|
||||
|
||||
// Create a new file using default properties.
|
||||
try {
|
||||
|
||||
@@ -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,12 +31,12 @@ public class H5_CreateGroupDataset {
|
||||
private static final int DIM2_Y = 10;
|
||||
|
||||
private static void h5_crtgrpd() {
|
||||
long file_id = -1;
|
||||
long dataspace_id = -1;
|
||||
long dataset_id = -1;
|
||||
long group_id = -1;
|
||||
long group1_id = -1;
|
||||
long group2_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataspace_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long dataset_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long group_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long group1_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long group2_id = HDF5Constants.H5I_INVALID_HID;
|
||||
int[][] dset1_data = new int[DIM1_X][DIM1_Y];
|
||||
int[][] dset2_data = new int[DIM2_X][DIM2_Y];
|
||||
long[] dims1 = { DIM1_X, DIM1_Y };
|
||||
@@ -108,7 +107,7 @@ public class H5_CreateGroupDataset {
|
||||
try {
|
||||
if (dataspace_id >= 0)
|
||||
H5.H5Sclose(dataspace_id);
|
||||
dataspace_id = -1;
|
||||
dataspace_id = HDF5Constants.H5I_INVALID_HID;
|
||||
}
|
||||
catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
@@ -118,7 +117,7 @@ public class H5_CreateGroupDataset {
|
||||
try {
|
||||
if (dataset_id >= 0)
|
||||
H5.H5Dclose(dataset_id);
|
||||
dataset_id = -1;
|
||||
dataset_id = HDF5Constants.H5I_INVALID_HID;
|
||||
}
|
||||
catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
|
||||
@@ -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 *
|
||||
@@ -27,9 +26,9 @@ public class H5_ReadWrite {
|
||||
private static final int DIM_Y = 6;
|
||||
|
||||
private static void ReadWriteDataset() {
|
||||
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 = new int[DIM_X][DIM_Y];
|
||||
|
||||
|
||||
@@ -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@"
|
||||
|
||||
TESTNAME=EX_Intro
|
||||
EXIT_SUCCESS=0
|
||||
@@ -33,8 +33,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/intro"
|
||||
JARFILE=jar@PACKAGE_TARNAME@-@PACKAGE_VERSION@.jar
|
||||
TESTJARFILE=jar@PACKAGE_TARNAME@intro.jar
|
||||
@@ -99,6 +99,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