I didn’t know about the testBit method (there really wasn’t a BigDecimal in Java the last time I had to deal with binary data in Java more than 10 years ago now, gee I’m getting old).
So as long as you can convert a two byte binary into a BigDecimal and toBigInteger without the sign bit being messed with this should work pretty well.