Package org.apache.logging.log4j.util
Class Chars
- java.lang.Object
-
- org.apache.logging.log4j.util.Chars
-
public final class Chars extends Object
Consider this class private.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static char
getLowerCaseHex(int digit)
Converts a digit into an lower-case hexadecimal character or the null character if invalid.static char
getUpperCaseHex(int digit)
Converts a digit into an upper-case hexadecimal character or the null character if invalid.
-
-
-
Field Detail
-
CR
public static final char CR
Carriage Return.- See Also:
- Constant Field Values
-
DQUOTE
public static final char DQUOTE
Double Quote.- See Also:
- Constant Field Values
-
EQ
public static final char EQ
Equals '='.- See Also:
- Constant Field Values
-
LF
public static final char LF
Line Feed.- See Also:
- Constant Field Values
-
NUL
public static final char NUL
NUL.- See Also:
- Constant Field Values
-
QUOTE
public static final char QUOTE
Single Quote ['].- See Also:
- Constant Field Values
-
SPACE
public static final char SPACE
Space.- See Also:
- Constant Field Values
-
TAB
public static final char TAB
Tab.- See Also:
- Constant Field Values
-
-
Method Detail
-
getUpperCaseHex
public static char getUpperCaseHex(int digit)
Converts a digit into an upper-case hexadecimal character or the null character if invalid.- Parameters:
digit
- a number 0 - 15- Returns:
- the hex character for that digit or '\0' if invalid
-
getLowerCaseHex
public static char getLowerCaseHex(int digit)
Converts a digit into an lower-case hexadecimal character or the null character if invalid.- Parameters:
digit
- a number 0 - 15- Returns:
- the hex character for that digit or '\0' if invalid
-
-