I have a Perl script where it takes a value and unpacks it into a few binary data attributes. Example as below
my ( $atr1, $atr2, $atr3, $atr4 ) = unpack('a3a16a32a*', $original_value);
I would like to know do I achieve the same with Java perhaps using ByteBuffer or some other means.
In this gist https://gist.github.com/enrobsop/8403717 it is done for integers but I'm still not clear on how to handle binary data.