Static methods to convert a type into another, with endianness and bit ordering awareness.
The methods names follow a naming rule: {@code
Source/destination type fields is one of the following:
binary: an array of booleans
byte or byteArray
int or intArray
long or longArray
hex: a String containing hexadecimal digits (lowercase in destination)
hexDigit: a Char containing a hexadecimal digit (lowercase in destination)
uuid
Endianness field: little endian is the default, in this case the field is absent. In case of big endian, the field is "Be". Bit ordering: Lsb0 is the default, in this case the field is absent. In case of Msb0, the field is "Msb0".
Example: intBeMsb0ToHex convert an int with big endian byte order and Msb0 bit order into its hexadecimal string representation
Most of the methods provide only default encoding for destination, this limits the number of ways to do one thing. Unless you are dealing with data from/to outside of the JVM platform, you should not need to use "Be" and "Msb0" methods.
Development status: work on going, only a part of the little endian, Lsb0 methods implemented so far.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.