11![ JBBP Logo] ( https://github.com/raydac/java-binary-block-parser/blob/master/logo.png )
22
33[ ![ License Apache 2.0] ( https://img.shields.io/badge/license-Apache%20License%202.0-green.svg )] ( http://www.apache.org/licenses/LICENSE-2.0 )
4- [ ![ 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 )
4+ [ ![ 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 )
55[ ![ Java 1.8+] ( https://img.shields.io/badge/java-1.8%2b-green.svg )] ( http://www.oracle.com/technetwork/java/javase/downloads/index.html )
66[ ![ Android 3.0+] ( https://img.shields.io/badge/android-3.0%2b-green.svg )] ( http://developer.android.com/sdk/index.html )
77[ ![ 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 )
@@ -16,12 +16,18 @@ that for Java. So I developed the JBBP library.<br>
1616![ Use cases] ( https://github.com/raydac/java-binary-block-parser/blob/master/docs/jbbp_mm.png )
1717
1818# Change log
19- - __ 2.0.6 (01-jul-2023)__
20- - [ #42 ] ( https://github.com/raydac/java-binary-block-parser/issues/42 ) unexpected exception during JBBPDslBuilder.AnnotatedClass method call
19+
20+ - __ 2.1.0 (05-nov-2024)__
21+ - minor changes in API for ` JBBPVarFieldProcessor ` and ` JBBPCustomFieldTypeProcessor `
22+ - provided way to control size of arrays read as stream
23+ rest [ #44 ] ( https://github.com/raydac/java-binary-block-parser/issues/41 )
24+ - provided way to control size of arrays which size calculated through
25+ expressions [ #45 ] ( https://github.com/raydac/java-binary-block-parser/issues/41 )
2126 - improved tests
2227
23- - __ 2.0.5 (17-jun-2023)__
24- - [ #41 ] ( https://github.com/raydac/java-binary-block-parser/issues/41 ) fix for Gradle plug-in
28+ - __ 2.0.6 (01-jul-2023)__
29+ - unexpected exception during JBBPDslBuilder.AnnotatedClass method
30+ call [ #42 ] ( https://github.com/raydac/java-binary-block-parser/issues/42 )
2531 - improved tests
2632
2733[ Full changelog] ( https://github.com/raydac/java-binary-block-parser/blob/master/changelog.txt )
@@ -34,12 +40,12 @@ The Framework has been published in the Maven Central and can be easily added as
3440<dependency>
3541 <groupId>com.igormaznitsa</groupId>
3642 <artifactId>jbbp</artifactId>
37- <version>2.0.6 </version>
43+ <version>2.1.0 </version>
3844</dependency>
3945```
4046
4147the precompiled library jar, javadoc and sources also can be downloaded directly
42- from [ the Maven central.] ( https://search.maven.org/artifact/com.igormaznitsa/jbbp/2.0.6 /jar )
48+ from [ the Maven central.] ( https://search.maven.org/artifact/com.igormaznitsa/jbbp/2.1.0 /jar )
4349
4450# Hello world
4551
@@ -112,7 +118,7 @@ in Maven it can be used through snippet:
112118<plugin >
113119 <groupId >com.igormaznitsa</groupId >
114120 <artifactId >jbbp-maven-plugin</artifactId >
115- <version >2.0.6 </version >
121+ <version >2.1.0 </version >
116122 <executions >
117123 <execution >
118124 <id >gen-jbbp-src</id >
@@ -148,10 +154,10 @@ class Flags {
148154
149155 final int data = 0b10101010 ;
150156 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 ());
151- assertEquals(1 ,parsed. flag1);
152- assertEquals(2 ,parsed. flag2);
153- assertEquals(0 ,parsed. flag3);
154- assertEquals(5 ,parsed. flag4);
157+ assertEquals(1 , parsed. flag1);
158+ assertEquals(2 , parsed. flag2);
159+ assertEquals(0 , parsed. flag3);
160+ assertEquals(5 , parsed. flag4);
155161
156162 System . out. println(new JBBPTextWriter (). Bin(parsed). Close(). toString());
157163
0 commit comments