1
1
![ JBBP Logo] ( https://github.com/raydac/java-binary-block-parser/blob/master/logo.png )
2
2
3
3
[ ![ 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 )
5
5
[ ![ Java 1.8+] ( https://img.shields.io/badge/java-1.8%2b-green.svg )] ( http://www.oracle.com/technetwork/java/javase/downloads/index.html )
6
6
[ ![ Android 3.0+] ( https://img.shields.io/badge/android-3.0%2b-green.svg )] ( http://developer.android.com/sdk/index.html )
7
7
[ ![ 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>
16
16
![ Use cases] ( https://github.com/raydac/java-binary-block-parser/blob/master/docs/jbbp_mm.png )
17
17
18
18
# 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 )
21
26
- improved tests
22
27
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 )
25
31
- improved tests
26
32
27
33
[ 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
34
40
<dependency>
35
41
<groupId>com.igormaznitsa</groupId>
36
42
<artifactId>jbbp</artifactId>
37
- <version>2.0.6 </version>
43
+ <version>2.1.0 </version>
38
44
</dependency>
39
45
```
40
46
41
47
the 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 )
43
49
44
50
# Hello world
45
51
@@ -112,7 +118,7 @@ in Maven it can be used through snippet:
112
118
<plugin >
113
119
<groupId >com.igormaznitsa</groupId >
114
120
<artifactId >jbbp-maven-plugin</artifactId >
115
- <version >2.0.6 </version >
121
+ <version >2.1.0 </version >
116
122
<executions >
117
123
<execution >
118
124
<id >gen-jbbp-src</id >
@@ -148,10 +154,10 @@ class Flags {
148
154
149
155
final int data = 0b10101010 ;
150
156
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);
155
161
156
162
System . out. println(new JBBPTextWriter (). Bin(parsed). Close(). toString());
157
163
0 commit comments