org.apache.logging.log4j.util

Class Chars



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

      Fields 
      Modifier and Type Field and Description
      static char CR
      Carriage Return.
      static char DQUOTE
      Double Quote.
      static char EQ
      Equals '='.
      static char LF
      Line Feed.
      static char NUL
      NUL.
      static char QUOTE
      Single Quote ['].
      static char SPACE
      Space.
      static char TAB
      Tab.
    • 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-2018 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.