Java XML Hex hex(final byte[] bytes)

Here you can find the source of hex(final byte[] bytes)

Description

hex

License

Open Source License

Declaration

public static String hex(final byte[] bytes) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import javax.xml.bind.DatatypeConverter;

public class Main {
    public static String hex(final byte[] bytes) {
        return DatatypeConverter.printHexBinary(bytes);
    }/*  w  w  w. j  a  v a 2  s . c o  m*/

    public static byte[] hex(final String str) {
        return DatatypeConverter.parseHexBinary(str);
    }
}

Related

  1. fromHex(String hex)
  2. fromHex(String hex)
  3. fromHex(String str)
  4. getBytes(String hex)
  5. getFreshExecutionId()
  6. hex2bin(String input)
  7. hexFromBinary(byte[] value)
  8. hexIn(String s)
  9. hexOut(byte[] byteArray)