summaryrefslogtreecommitdiffstats
path: root/java/examples/intro/H5_CreateGroup.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/examples/intro/H5_CreateGroup.java')
-rw-r--r--java/examples/intro/H5_CreateGroup.java19
1 files changed, 8 insertions, 11 deletions
diff --git a/java/examples/intro/H5_CreateGroup.java b/java/examples/intro/H5_CreateGroup.java
index c0bb954..a276cbd 100644
--- a/java/examples/intro/H5_CreateGroup.java
+++ b/java/examples/intro/H5_CreateGroup.java
@@ -20,17 +20,18 @@ import hdf.hdf5lib.H5;
import hdf.hdf5lib.HDF5Constants;
public class H5_CreateGroup {
- private static String FILENAME = "H5_CreateGroup.h5";
+ private static String FILENAME = "H5_CreateGroup.h5";
private static String GROUPNAME = "MyGroup";
- private static void CreateGroup() {
- long file_id = HDF5Constants.H5I_INVALID_HID;
+ private static void CreateGroup()
+ {
+ long file_id = HDF5Constants.H5I_INVALID_HID;
long group_id = HDF5Constants.H5I_INVALID_HID;
// Create a new file using default properties.
try {
file_id = H5.H5Fcreate(FILENAME, HDF5Constants.H5F_ACC_TRUNC, HDF5Constants.H5P_DEFAULT,
- HDF5Constants.H5P_DEFAULT);
+ HDF5Constants.H5P_DEFAULT);
}
catch (Exception e) {
e.printStackTrace();
@@ -39,8 +40,8 @@ public class H5_CreateGroup {
// Create a group in the file.
try {
if (file_id >= 0)
- group_id = H5.H5Gcreate(file_id, "/" + GROUPNAME, HDF5Constants.H5P_DEFAULT, HDF5Constants.H5P_DEFAULT,
- HDF5Constants.H5P_DEFAULT);
+ group_id = H5.H5Gcreate(file_id, "/" + GROUPNAME, HDF5Constants.H5P_DEFAULT,
+ HDF5Constants.H5P_DEFAULT, HDF5Constants.H5P_DEFAULT);
}
catch (Exception e) {
e.printStackTrace();
@@ -63,11 +64,7 @@ public class H5_CreateGroup {
catch (Exception e) {
e.printStackTrace();
}
-
- }
-
- public static void main(String[] args) {
- H5_CreateGroup.CreateGroup();
}
+ public static void main(String[] args) { H5_CreateGroup.CreateGroup(); }
}