org.apache.logging.log4j.util

Class Chars



  • public final class Chars
    extends Object
    Consider this class private.
    • 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

Copyright © 1999-2023 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.