Skip to content

Commit

Permalink
Merge pull request #64 from jamesmudd/prepare-v0.4.0
Browse files Browse the repository at this point in the history
Prepare v0.4.0
  • Loading branch information
jamesmudd authored Mar 11, 2019
2 parents 4af166c + 40901ff commit 828d071
Show file tree
Hide file tree
Showing 131 changed files with 1,199 additions and 22 deletions.
10 changes: 10 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@

Please note this project is still in pre-release development.

## v0.4.0
- Add support for accessing attributes (see [Attribute.java](jhdf/src/main/java/io/jhdf/api/Attribute.java))
- Add support for scalar datasets
- Add support for empty datasets
- Add support for files with user blocks
- Fix bug where "old" style groups containing soft links could not be opened
- Fix bug reading unsigned numbers from "awkward" buffer sizes
- Lots of minor code cleanup and refactoring
- Improvements to tests and coverage

## v0.3.2
- Fix bug when fixed size string datasets contain strings of exactly that size.
- Fix bug where >1D fixed size datasets could not be read
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2018 James Mudd
Copyright (c) 2019 James Mudd

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion jhdf/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ plugins {

// Varibles
group = 'io.jhdf'
version = '0.3.2'
version = '0.4.0'
sourceCompatibility = 1.8
targetCompatibility = 1.8

Expand Down
11 changes: 10 additions & 1 deletion jhdf/src/main/java/io/jhdf/AbstractNode.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*******************************************************************************
* This file is part of jHDF. A pure Java library for accessing HDF5 files.
*
* http://jhdf.io
*
* Copyright 2019 James Mudd
*
* MIT License see 'LICENSE' file
******************************************************************************/
package io.jhdf;

import static java.util.stream.Collectors.toMap;
Expand Down Expand Up @@ -159,4 +168,4 @@ public Map<String, Attribute> getAttributes() {
public Attribute getAttribute(String name) {
return getAttributes().get(name);
}
}
}
9 changes: 9 additions & 0 deletions jhdf/src/main/java/io/jhdf/AttributeImpl.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*******************************************************************************
* This file is part of jHDF. A pure Java library for accessing HDF5 files.
*
* http://jhdf.io
*
* Copyright 2019 James Mudd
*
* MIT License see 'LICENSE' file
******************************************************************************/
package io.jhdf;

import static org.apache.commons.lang3.ClassUtils.primitiveToWrapper;
Expand Down
9 changes: 9 additions & 0 deletions jhdf/src/main/java/io/jhdf/Constants.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*******************************************************************************
* This file is part of jHDF. A pure Java library for accessing HDF5 files.
*
* http://jhdf.io
*
* Copyright 2019 James Mudd
*
* MIT License see 'LICENSE' file
******************************************************************************/
package io.jhdf;

public final class Constants {
Expand Down
9 changes: 9 additions & 0 deletions jhdf/src/main/java/io/jhdf/FractalHeap.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*******************************************************************************
* This file is part of jHDF. A pure Java library for accessing HDF5 files.
*
* http://jhdf.io
*
* Copyright 2019 James Mudd
*
* MIT License see 'LICENSE' file
******************************************************************************/
package io.jhdf;

import static io.jhdf.Constants.UNDEFINED_ADDRESS;
Expand Down
9 changes: 9 additions & 0 deletions jhdf/src/main/java/io/jhdf/GlobalHeap.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*******************************************************************************
* This file is part of jHDF. A pure Java library for accessing HDF5 files.
*
* http://jhdf.io
*
* Copyright 2019 James Mudd
*
* MIT License see 'LICENSE' file
******************************************************************************/
package io.jhdf;

import static io.jhdf.Utils.createSubBuffer;
Expand Down
9 changes: 9 additions & 0 deletions jhdf/src/main/java/io/jhdf/GroupImpl.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*******************************************************************************
* This file is part of jHDF. A pure Java library for accessing HDF5 files.
*
* http://jhdf.io
*
* Copyright 2019 James Mudd
*
* MIT License see 'LICENSE' file
******************************************************************************/
package io.jhdf;

import java.nio.ByteBuffer;
Expand Down
9 changes: 9 additions & 0 deletions jhdf/src/main/java/io/jhdf/GroupSymbolTableNode.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*******************************************************************************
* This file is part of jHDF. A pure Java library for accessing HDF5 files.
*
* http://jhdf.io
*
* Copyright 2019 James Mudd
*
* MIT License see 'LICENSE' file
******************************************************************************/
package io.jhdf;

import static java.nio.ByteOrder.LITTLE_ENDIAN;
Expand Down
9 changes: 9 additions & 0 deletions jhdf/src/main/java/io/jhdf/HdfFile.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*******************************************************************************
* This file is part of jHDF. A pure Java library for accessing HDF5 files.
*
* http://jhdf.io
*
* Copyright 2019 James Mudd
*
* MIT License see 'LICENSE' file
******************************************************************************/
package io.jhdf;

import java.io.File;
Expand Down
9 changes: 9 additions & 0 deletions jhdf/src/main/java/io/jhdf/HdfFileChannel.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*******************************************************************************
* This file is part of jHDF. A pure Java library for accessing HDF5 files.
*
* http://jhdf.io
*
* Copyright 2019 James Mudd
*
* MIT License see 'LICENSE' file
******************************************************************************/
package io.jhdf;

import static java.nio.ByteOrder.LITTLE_ENDIAN;
Expand Down
9 changes: 9 additions & 0 deletions jhdf/src/main/java/io/jhdf/LocalHeap.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*******************************************************************************
* This file is part of jHDF. A pure Java library for accessing HDF5 files.
*
* http://jhdf.io
*
* Copyright 2019 James Mudd
*
* MIT License see 'LICENSE' file
******************************************************************************/
package io.jhdf;

import java.nio.ByteBuffer;
Expand Down
9 changes: 9 additions & 0 deletions jhdf/src/main/java/io/jhdf/ObjectHeader.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*******************************************************************************
* This file is part of jHDF. A pure Java library for accessing HDF5 files.
*
* http://jhdf.io
*
* Copyright 2019 James Mudd
*
* MIT License see 'LICENSE' file
******************************************************************************/
package io.jhdf;

import static io.jhdf.Utils.readBytesAsUnsignedInt;
Expand Down
9 changes: 9 additions & 0 deletions jhdf/src/main/java/io/jhdf/Superblock.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*******************************************************************************
* This file is part of jHDF. A pure Java library for accessing HDF5 files.
*
* http://jhdf.io
*
* Copyright 2019 James Mudd
*
* MIT License see 'LICENSE' file
******************************************************************************/
package io.jhdf;

import static io.jhdf.Utils.toHex;
Expand Down
9 changes: 9 additions & 0 deletions jhdf/src/main/java/io/jhdf/SymbolTableEntry.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*******************************************************************************
* This file is part of jHDF. A pure Java library for accessing HDF5 files.
*
* http://jhdf.io
*
* Copyright 2019 James Mudd
*
* MIT License see 'LICENSE' file
******************************************************************************/
package io.jhdf;

import static io.jhdf.Utils.toHex;
Expand Down
9 changes: 9 additions & 0 deletions jhdf/src/main/java/io/jhdf/Utils.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*******************************************************************************
* This file is part of jHDF. A pure Java library for accessing HDF5 files.
*
* http://jhdf.io
*
* Copyright 2019 James Mudd
*
* MIT License see 'LICENSE' file
******************************************************************************/
package io.jhdf;

import static java.nio.ByteOrder.LITTLE_ENDIAN;
Expand Down
24 changes: 24 additions & 0 deletions jhdf/src/main/java/io/jhdf/api/Attribute.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
/*******************************************************************************
* This file is part of jHDF. A pure Java library for accessing HDF5 files.
*
* http://jhdf.io
*
* Copyright 2019 James Mudd
*
* MIT License see 'LICENSE' file
******************************************************************************/
/*
* This file is part of jHDF. A pure Java library for accessing HDF5 files.
*
* http://jhdf.io
*
* Copyright 2019 James Mudd
*
* MIT License see LICENSE file
*/
package io.jhdf.api;

/**
* Interface for HDF5 attributes. Attributes can be attached to {@link Group}s
* or {@link Dataset}s. They contain metadata about that object.
*
* @author James Mudd
*/
public interface Attribute {

/**
Expand Down
11 changes: 10 additions & 1 deletion jhdf/src/main/java/io/jhdf/api/Dataset.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*******************************************************************************
* This file is part of jHDF. A pure Java library for accessing HDF5 files.
*
* http://jhdf.io
*
* Copyright 2019 James Mudd
*
* MIT License see 'LICENSE' file
******************************************************************************/
package io.jhdf.api;

import io.jhdf.object.message.DataLayout;
Expand Down Expand Up @@ -86,4 +95,4 @@ public interface Dataset extends Node {
*/
Class<?> getJavaType();

}
}
9 changes: 9 additions & 0 deletions jhdf/src/main/java/io/jhdf/api/Group.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*******************************************************************************
* This file is part of jHDF. A pure Java library for accessing HDF5 files.
*
* http://jhdf.io
*
* Copyright 2019 James Mudd
*
* MIT License see 'LICENSE' file
******************************************************************************/
package io.jhdf.api;

import java.util.Map;
Expand Down
9 changes: 9 additions & 0 deletions jhdf/src/main/java/io/jhdf/api/Link.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*******************************************************************************
* This file is part of jHDF. A pure Java library for accessing HDF5 files.
*
* http://jhdf.io
*
* Copyright 2019 James Mudd
*
* MIT License see 'LICENSE' file
******************************************************************************/
package io.jhdf.api;

public interface Link extends Node {
Expand Down
9 changes: 9 additions & 0 deletions jhdf/src/main/java/io/jhdf/api/Node.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*******************************************************************************
* This file is part of jHDF. A pure Java library for accessing HDF5 files.
*
* http://jhdf.io
*
* Copyright 2019 James Mudd
*
* MIT License see 'LICENSE' file
******************************************************************************/
package io.jhdf.api;

import java.io.File;
Expand Down
9 changes: 9 additions & 0 deletions jhdf/src/main/java/io/jhdf/api/NodeType.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*******************************************************************************
* This file is part of jHDF. A pure Java library for accessing HDF5 files.
*
* http://jhdf.io
*
* Copyright 2019 James Mudd
*
* MIT License see 'LICENSE' file
******************************************************************************/
package io.jhdf.api;

public enum NodeType {
Expand Down
11 changes: 10 additions & 1 deletion jhdf/src/main/java/io/jhdf/api/package-info.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
/*******************************************************************************
* This file is part of jHDF. A pure Java library for accessing HDF5 files.
*
* http://jhdf.io
*
* Copyright 2019 James Mudd
*
* MIT License see 'LICENSE' file
******************************************************************************/
/**
* The API classes for accessing HDF5 files using the jHDF library.
*
* @author James Mudd
*/
package io.jhdf.api;
package io.jhdf.api;
11 changes: 10 additions & 1 deletion jhdf/src/main/java/io/jhdf/btree/BTreeV1.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*******************************************************************************
* This file is part of jHDF. A pure Java library for accessing HDF5 files.
*
* http://jhdf.io
*
* Copyright 2019 James Mudd
*
* MIT License see 'LICENSE' file
******************************************************************************/
package io.jhdf.btree;

import java.nio.ByteBuffer;
Expand Down Expand Up @@ -116,4 +125,4 @@ public long getAddress() {

public abstract List<Long> getChildAddresses();

}
}
11 changes: 10 additions & 1 deletion jhdf/src/main/java/io/jhdf/btree/BTreeV1Data.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*******************************************************************************
* This file is part of jHDF. A pure Java library for accessing HDF5 files.
*
* http://jhdf.io
*
* Copyright 2019 James Mudd
*
* MIT License see 'LICENSE' file
******************************************************************************/
package io.jhdf.btree;

import static java.util.stream.Collectors.toList;
Expand Down Expand Up @@ -165,4 +174,4 @@ public List<Long> getChildAddresses() {
return childAddresses;
}
}
}
}
9 changes: 9 additions & 0 deletions jhdf/src/main/java/io/jhdf/btree/BTreeV1Group.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*******************************************************************************
* This file is part of jHDF. A pure Java library for accessing HDF5 files.
*
* http://jhdf.io
*
* Copyright 2019 James Mudd
*
* MIT License see 'LICENSE' file
******************************************************************************/
package io.jhdf.btree;

import java.nio.ByteBuffer;
Expand Down
Loading

0 comments on commit 828d071

Please sign in to comment.