public static String decStringToHexString(final String decString) {
    Preconditions.checkNotNull(decString, "Error: Decimal string can't be null");

    return Long.toHexString(Long.valueOf(decString, 16));
  }
Converts a decimal string into a hexadecimal string.

<p>Note that the decimal string value must fit into a long value.

@param decString The decimal string to convert.
@return The hexadecimal string.
java/zylib/src/main/java/com/google/security/zynamics/zylib/general/Convert.java