HexUtils (Apache Tomcat 11.0.21 API Documentation)
Description: declaration: package: org.apache.tomcat.util.buf, class: HexUtils

# Class HexUtils

java.lang.Object
org.apache.tomcat.util.buf.HexUtils

public final class HexUtils extends Object
Tables useful when converting byte arrays to and from strings of hexadecimal digits. Code from Ajp11, from Apache's JServ.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `HexUtils()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static byte[]`
  `fromHexString(String input)`
  `static int`
  `getDec(int index)`
  `static byte`
  `getHex(int index)`
  `static String`
  `toHexString(byte[] bytes)`
  `static String`
  `toHexString(char c)`

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### HexUtils

    public HexUtils()

- ## Method Details

  - ### getDec

    public static int getDec(int index)

  - ### getHex

    public static byte getHex(int index)

  - ### toHexString

    public static String toHexString(char c)

  - ### toHexString

    public static String toHexString(byte[] bytes)

  - ### fromHexString

    public static byte[] fromHexString(String input)