Class Chars

java.lang.Object
org.apache.logging.log4j.util.Chars

@InternalApi public final class Chars extends Object
Consider this class private.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final char
    Carriage Return.
    static final char
    Double Quote.
    static final char
    Equals '='.
    static final char
    Line Feed.
    static final char
    NUL.
    static final char
    Single Quote ['].
    static final char
    Space.
    static final char
    Tab.
  • Method Summary

    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • 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