Class Parsers

java.lang.Object
io.helidon.json.Parsers

public final class Parsers extends Object
Utility methods shared by JSON parser implementations.
  • Method Details

    • translateHex

      public static int translateHex(byte b, JsonParser parser)
      Translates a hexadecimal byte into its numeric value.
      Parameters:
      b - the hexadecimal byte to translate
      parser - the parser used to create an exception when the byte is invalid
      Returns:
      the numeric value of the hexadecimal digit
    • toPrintableForm

      public static String toPrintableForm(byte c)
      Converts a byte value into a printable representation for diagnostics.
      Parameters:
      c - the byte value to convert
      Returns:
      a printable representation of the byte
    • toPrintableForm

      public static String toPrintableForm(char c)
      Converts a character value into a printable representation for diagnostics.
      Parameters:
      c - the character value to convert
      Returns:
      a printable representation of the character