what are the alternative of DatatypeConverter.printHexBinary(byte[] array)
and DatatypeConverter.parseHexBinary(String str)
in Android. Android don't have classDef of java.xml.bind.DatatypeConverter
...
It defines static parse and print methods that provide access to a JAXB provider's implementation of parse and print methods. The static methods defined in the class can also be used to specify a parse or a print method in a javaType binding declaration.
parseHexBinary(String lexicalXSDHexBinary) Converts the string argument into an array of bytes. static int. parseInt(String lexicalXSDInt) Convert the string argument into an int value.
You are probably better off using the hexadecimal encoding/decoding found in the Apache commons codec library. Please make sure you are using the correct version of the library though, for more information look here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With