Java XML Hex getBytes(String hex)

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

Description

get Bytes

License

Open Source License

Declaration

public static byte[] getBytes(String hex) 

Method Source Code


//package com.java2s;
/*/*from  w  w  w  . j av a 2  s . c o  m*/
| Author: http://github.com/itsGhost | @_GGhost
| Type: Work in progress
| License: 
|  Copyright (C) itsghost.me - All Rights Reserved
|  Unauthorized copying of this file, via any medium is strictly prohibited
|  Proprietary, private and confidential
*/

import javax.xml.bind.DatatypeConverter;

public class Main {
    public static byte[] getBytes(String hex) {
        return DatatypeConverter.parseHexBinary(hex);
    }
}

Related

  1. convertStringToHex(String str)
  2. encodeHex(byte[] bytes)
  3. fromHex(String hex)
  4. fromHex(String hex)
  5. fromHex(String str)
  6. getFreshExecutionId()
  7. hex(final byte[] bytes)
  8. hex2bin(String input)
  9. hexFromBinary(byte[] value)