Java XML Hex fromHex(String hex)

Here you can find the source of fromHex(String hex)

Description

from Hex

License

Apache License

Declaration

static public byte[] fromHex(String hex) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import javax.xml.bind.DatatypeConverter;

public class Main {
    static public byte[] fromHex(String hex) {
        return DatatypeConverter.parseHexBinary(hex);
    }//w w  w .  ja  va 2  s  .c o  m
}

Related

  1. bytesToHexStr(byte[] array)
  2. convertByteArrayToHexString(byte[] byteArray)
  3. convertStringToHex(String str)
  4. encodeHex(byte[] bytes)
  5. fromHex(String hex)
  6. fromHex(String str)
  7. getBytes(String hex)
  8. getFreshExecutionId()
  9. hex(final byte[] bytes)