java.lang.Object
io.helidon.json.Parsers
Utility methods shared by JSON parser implementations.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringtoPrintableForm(byte c) Converts a byte value into a printable representation for diagnostics.static StringtoPrintableForm(char c) Converts a character value into a printable representation for diagnostics.static inttranslateHex(byte b, JsonParser parser) Translates a hexadecimal byte into its numeric value.
-
Method Details
-
translateHex
Translates a hexadecimal byte into its numeric value.- Parameters:
b- the hexadecimal byte to translateparser- the parser used to create an exception when the byte is invalid- Returns:
- the numeric value of the hexadecimal digit
-
toPrintableForm
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
Converts a character value into a printable representation for diagnostics.- Parameters:
c- the character value to convert- Returns:
- a printable representation of the character
-