Bytes Java Versions Save

Bytes is a utility library that makes it easy to create, parse, transform, validate and convert byte arrays in Java. It supports endianness as well as immutability and mutability, so the caller may decide to favor performance.

v1.6.1

1 year ago
  • now build by JDK 11 and removed errorprone compiler #52 (still Java 7 compatible)
  • introduce sonarqube and remove codecov
  • improve javadoc by fixing many typos #53
  • some small bugfixes

v1.6.0

1 year ago
  • migrate to github actions, codecov and maven central #49
  • add indexOf (thx @hlyakhovich) #48
  • add toShortArray (thx @hlyakhovich) #44
  • add from() constructor from short vararg or array (thx @hlyakhovich) #45
  • add an automatic module name to support the JPMS (thx @airsquared) #47
  • fix warning of junit 4.13 CVE-2020-15250

v1.5.0

3 years ago
  • fix leftShift() and rightShift() to respect byte order (thx @gfpeltier)
  • fix bitAt() to respect byte order (thx @gfpeltier)

v1.4.0

3 years ago

Changes

  • add from() constructor from float[]
  • add from() constructor from double[]
  • fix throwing IllegalArgumentException instead of IllegalStateException in .toUUID()

v1.3.0

4 years ago
  • improve hex encoder performance by factor 5

v1.2.0

4 years ago

Changes

  • let hex decoder accept odd length string #37

v1.1.0

5 years ago
  • add unsecureRandom() constructor which creates random for e.g. tests or deterministic randoms
  • adds overwrite method to Bytes (thx @JadePaukkunen)
  • make project OSGi compatible #36
  • add toFloatArray() converter #30
  • add toDoubleArray() converter #30

v1.0.0

5 years ago

Changes

  • add append() method supporting multiple byte arrays #26
  • add toCharArray() method which decodes internal byte array to char[] #27
  • add encodeBase64() supporting padding-less encoding
  • add toIntArray() converter #28
  • add toLongArray() converter #29
  • add AutoCloseable to MutableBytes interface #31
  • add allocate() as mutable byte static constructor (thx @petrukhnov)

Breaking

  • removed deprecated toObjectArray(); use toBoxedArray() instead

v0.8.0

5 years ago

Changes

  • add radix encoding/parsing and fix radix tests #6, #20
  • add support for Base32 RFC4648 non-hex alphabet encoding/parsing #21
  • add constructor for IntBuffer and CharBuffer
  • parse() methods now expect more flexible CharSequence instead of String #23
  • from() constructor reading from char[] has new version that accepts offset and length #24
  • add from() constructor reading file with offset and length parameter #25

Breaking

  • interface BinaryToTextEncoding.decode() changed param to CharSequence from String #23

v0.7.1

5 years ago

Changes

  • sign AFTER ProGuard so optimized version has correct jar signature