A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Mobile
»
Android
Author
Android equivalent of javax.xml.bind.DatatypeConverter?
W Bird
Greenhorn
Joined: Aug 19, 2012
Posts: 1
posted
Aug 19, 2012 08:37:54
0
Is there an equivalent to
javax.xml.bind.DatatypeConverter
on Android? I need to convert a
String
of hex to a byte array, like this:
private static final String symKeyHex = "FD010203B40506070F0119020C0D0E1E"; private byte[] symKeyData; symKeyData = DatatypeConverter.parseHexBinary(symKeyHex);
The result of this should be an array of 16 bytes.
I agree. Here's the link:
http://zeroturnaround.com/jrebel/download
subject: Android equivalent of javax.xml.bind.DatatypeConverter?
Similar Threads
Differnce between new String(Byte[]) and byte[].toString()
writing byte array into a file
Bit wise ,shift Operators practical usage
Byte to String problem
problem base64 encoding the 3 hex bytes E2 80 A9
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter