Package org.apache.logging.log4j.util
Class Chars
java.lang.Object
org.apache.logging.log4j.util.Chars
Consider this class private.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final charCarriage Return.static final charDouble Quote.static final charEquals '='.static final charLine Feed.static final charNUL.static final charSingle Quote ['].static final charSpace.static final charTab. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static chargetLowerCaseAlphaDigit(int digit) static chargetLowerCaseHex(int digit) Converts a digit into an lower-case hexadecimal character or the null character if invalid.private static chargetNumericalDigit(int digit) private static chargetUpperCaseAlphaDigit(int digit) static chargetUpperCaseHex(int digit) Converts a digit into an upper-case hexadecimal character or the null character if invalid.
-
Field Details
-
CR
public static final char CRCarriage Return.- See Also:
-
DQUOTE
public static final char DQUOTEDouble Quote.- See Also:
-
EQ
public static final char EQEquals '='.- See Also:
-
LF
public static final char LFLine Feed.- See Also:
-
NUL
public static final char NULNUL.- See Also:
-
QUOTE
public static final char QUOTESingle Quote ['].- See Also:
-
SPACE
public static final char SPACESpace.- See Also:
-
TAB
public static final char TABTab.- See Also:
-
-
Constructor Details
-
Chars
private Chars()
-
-
Method Details
-
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
-
getNumericalDigit
private static char getNumericalDigit(int digit) -
getUpperCaseAlphaDigit
private static char getUpperCaseAlphaDigit(int digit) -
getLowerCaseAlphaDigit
private static char getLowerCaseAlphaDigit(int digit)
-