Skip to main content

The Hex class in commons-codec should do that for you.

http://commons.apache.org/codec/

import org.apache.commons.codec.binary.Hex;
...
byte[] decoded = Hex.decodeHex("00A0BF");
// 0x00 0xA0 0xBF

The Hex class in commons-codec should do that for you.

http://commons.apache.org/codec/

The Hex class in commons-codec should do that for you.

http://commons.apache.org/codec/

import org.apache.commons.codec.binary.Hex;
...
byte[] decoded = Hex.decodeHex("00A0BF");
// 0x00 0xA0 0xBF
Source Link
skaffman
  • 404.6k
  • 96
  • 825
  • 775

The Hex class in commons-codec should do that for you.

http://commons.apache.org/codec/