Skip to content

Commit

Permalink
release 2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
raydac committed Nov 5, 2024
1 parent 03e708d commit 5a2a355
Show file tree
Hide file tree
Showing 13 changed files with 35 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .projectKnowledge/JBBP.mmd
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
> __version__=`1.1`,showJumps=`true`
---

# Java Binary<br/>Block Parser<br/>v 2\.0\.6
# Java Binary<br/>Block Parser<br/>v 2\.1\.0

## License
> fillColor=`#33CC00`,leftSide=`true`
Expand Down
30 changes: 18 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
![JBBP Logo](https://github.com/raydac/java-binary-block-parser/blob/master/logo.png)

[![License Apache 2.0](https://img.shields.io/badge/license-Apache%20License%202.0-green.svg)](http://www.apache.org/licenses/LICENSE-2.0)
[![Maven central](https://maven-badges.herokuapp.com/maven-central/com.igormaznitsa/jbbp/badge.svg)](http://search.maven.org/#artifactdetails|com.igormaznitsa|jbbp|2.0.6|jar)
[![Maven central](https://maven-badges.herokuapp.com/maven-central/com.igormaznitsa/jbbp/badge.svg)](http://search.maven.org/#artifactdetails|com.igormaznitsa|jbbp|2.1.0|jar)
[![Java 1.8+](https://img.shields.io/badge/java-1.8%2b-green.svg)](http://www.oracle.com/technetwork/java/javase/downloads/index.html)
[![Android 3.0+](https://img.shields.io/badge/android-3.0%2b-green.svg)](http://developer.android.com/sdk/index.html)
[![PayPal donation](https://img.shields.io/badge/donation-PayPal-cyan.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=AHWJHJFBAWGL2)
Expand All @@ -16,12 +16,18 @@ that for Java. So I developed the JBBP library.<br>
![Use cases](https://github.com/raydac/java-binary-block-parser/blob/master/docs/jbbp_mm.png)

# Change log
- __2.0.6 (01-jul-2023)__
- [#42](https://github.com/raydac/java-binary-block-parser/issues/42) unexpected exception during JBBPDslBuilder.AnnotatedClass method call

- __2.1.0 (05-nov-2024)__
- minor changes in API for `JBBPVarFieldProcessor` and `JBBPCustomFieldTypeProcessor`
- provided way to control size of arrays read as stream
rest [#44](https://github.com/raydac/java-binary-block-parser/issues/41)
- provided way to control size of arrays which size calculated through
expressions [#45](https://github.com/raydac/java-binary-block-parser/issues/41)
- improved tests

- __2.0.5 (17-jun-2023)__
- [#41](https://github.com/raydac/java-binary-block-parser/issues/41) fix for Gradle plug-in
- __2.0.6 (01-jul-2023)__
- unexpected exception during JBBPDslBuilder.AnnotatedClass method
call [#42](https://github.com/raydac/java-binary-block-parser/issues/42)
- improved tests

[Full changelog](https://github.com/raydac/java-binary-block-parser/blob/master/changelog.txt)
Expand All @@ -34,12 +40,12 @@ The Framework has been published in the Maven Central and can be easily added as
<dependency>
<groupId>com.igormaznitsa</groupId>
<artifactId>jbbp</artifactId>
<version>2.0.6</version>
<version>2.1.0</version>
</dependency>
```

the precompiled library jar, javadoc and sources also can be downloaded directly
from [the Maven central.](https://search.maven.org/artifact/com.igormaznitsa/jbbp/2.0.6/jar)
from [the Maven central.](https://search.maven.org/artifact/com.igormaznitsa/jbbp/2.1.0/jar)

# Hello world

Expand Down Expand Up @@ -112,7 +118,7 @@ in Maven it can be used through snippet:
<plugin>
<groupId>com.igormaznitsa</groupId>
<artifactId>jbbp-maven-plugin</artifactId>
<version>2.0.6</version>
<version>2.1.0</version>
<executions>
<execution>
<id>gen-jbbp-src</id>
Expand Down Expand Up @@ -148,10 +154,10 @@ class Flags {

final int data = 0b10101010;
Flags parsed = JBBPParser.prepare("bit:1 f1; bit:2 f2; bit:1 f3; bit:4 f4;", JBBPBitOrder.MSB0).parse(new byte[]{(byte)data}).mapTo(new Flags());
assertEquals(1,parsed.flag1);
assertEquals(2,parsed.flag2);
assertEquals(0,parsed.flag3);
assertEquals(5,parsed.flag4);
assertEquals(1, parsed.flag1);
assertEquals(2, parsed.flag2);
assertEquals(0, parsed.flag3);
assertEquals(5, parsed.flag4);

System.out.println(new JBBPTextWriter().Bin(parsed).Close().toString());

Expand Down
6 changes: 6 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2.1.0 (05-nov-2024)
- minor changes in API for JBBPVarFieldProcessor and JBBPCustomFieldTypeProcessor
- provided way to control size of arrays read as stream rest [#44](https://github.com/raydac/java-binary-block-parser/issues/41)
- provided way to control size of arrays which size calculated through expressions [#45](https://github.com/raydac/java-binary-block-parser/issues/41)
- improved tests

2.0.6 (01-jul-2023)
- [#42](https://github.com/raydac/java-binary-block-parser/issues/42) unexpected exception during JBBPDslBuilder.AnnotatedClass method call
- improved tests
Expand Down
Binary file modified docs/jbbp_mm.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion jbbp-plugins/jbbp-gradle-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.igormaznitsa</groupId>
<artifactId>jbbp-main-plugin-pom</artifactId>
<version>2.1.0-SNAPSHOT</version>
<version>2.1.0</version>
</parent>

<artifactId>jbbp-gradle-tests</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion jbbp-plugins/jbbp-gradle/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.igormaznitsa</groupId>
<artifactId>jbbp-main-plugin-pom</artifactId>
<version>2.1.0-SNAPSHOT</version>
<version>2.1.0</version>
</parent>

<artifactId>jbbp-gradle-plugin</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion jbbp-plugins/jbbp-maven/jbbp-maven-plugin-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.igormaznitsa</groupId>
<artifactId>jbbp-maven-plugin-pom</artifactId>
<version>2.1.0-SNAPSHOT</version>
<version>2.1.0</version>
</parent>

<artifactId>jbbp-maven-plugin-tests</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion jbbp-plugins/jbbp-maven/jbbp-maven-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.igormaznitsa</groupId>
<artifactId>jbbp-maven-plugin-pom</artifactId>
<version>2.1.0-SNAPSHOT</version>
<version>2.1.0</version>
</parent>

<artifactId>jbbp-maven-plugin</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion jbbp-plugins/jbbp-maven/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.igormaznitsa</groupId>
<artifactId>jbbp-main-plugin-pom</artifactId>
<version>2.1.0-SNAPSHOT</version>
<version>2.1.0</version>
</parent>

<artifactId>jbbp-maven-plugin-pom</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion jbbp-plugins/jbbp-plugin-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.igormaznitsa</groupId>
<artifactId>jbbp-main-plugin-pom</artifactId>
<version>2.1.0-SNAPSHOT</version>
<version>2.1.0</version>
</parent>

<artifactId>jbbp-plugin-common</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion jbbp-plugins/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.igormaznitsa</groupId>
<artifactId>jbbp-main-pom</artifactId>
<version>2.1.0-SNAPSHOT</version>
<version>2.1.0</version>
</parent>

<artifactId>jbbp-main-plugin-pom</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion jbbp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.igormaznitsa</groupId>
<artifactId>jbbp-main-pom</artifactId>
<version>2.1.0-SNAPSHOT</version>
<version>2.1.0</version>
</parent>

<artifactId>jbbp</artifactId>
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>com.igormaznitsa</groupId>
<artifactId>jbbp-main-pom</artifactId>
<version>2.1.0-SNAPSHOT</version>
<version>2.1.0</version>
<packaging>pom</packaging>

<modules>
Expand All @@ -20,7 +20,7 @@
<maven.build.timestamp.format>yyyyMMddHHmm</maven.build.timestamp.format>
<mvn.version>3.0</mvn.version>
<meta.version>1.1.2</meta.version>
<jbbp.version>2.1.0-SNAPSHOT</jbbp.version>
<jbbp.version>2.1.0</jbbp.version>
<jbbp.plugin.version>${jbbp.version}</jbbp.plugin.version>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
Expand Down

0 comments on commit 5a2a355

Please sign in to comment.