java.lang.Object
org.minidns.util.Hex

public class Hexextends Object
Utility class for hexadecimal conversion.
  • Constructor Details

    • Hex

      public Hex()
      Constructor. Both conversions are static functions of their byte or string argument, so an instance carries no state.
  • Method Details

    • from

      public static StringBuilder from(byte[] bytes)
      Converts a byte array to a hexadecimal string representation.
      Parameters:
      bytes - the byte array to convert
      Returns:
      a StringBuilder containing the hexadecimal representation (uppercase with spaces)