Here you can find the source of hexToString(String str)
Parameter | Description |
---|---|
str | The String to convert. |
public static String hexToString(String str)
//package com.java2s; //License from project: Open Source License import javax.xml.bind.DatatypeConverter; public class Main { /**/*w w w . ja v a 2 s. c om*/ * Converts a hexadecimal {@code String} to the equivalent lexical * representation. * * @param str The {@code String} to convert. * @return A {@code String} containing a lexical representation of the given * hexadecimal argument. */ public static String hexToString(String str) { return new String(DatatypeConverter.parseHexBinary(str)); } }