Class Chars


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

      Fields 
      Modifier and Type Field Description
      static char CR
      Carriage Return.
      static char DQUOTE
      Double Quote.
      static char EQ
      Equals '='.
      static char LF
      Line Feed.
      static char QUOTE
      Single Quote ['].
      static char SPACE
      Space.
      static char TAB
      Tab.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static char getLowerCaseHex​(int digit)
      Converts a digit into an lowercase hexadecimal character or the null character if invalid.
      static char getUpperCaseHex​(int digit)
      Converts a digit into an uppercase 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
    • Method Detail

      • getUpperCaseHex

        public static char getUpperCaseHex​(int digit)
        Converts a digit into an uppercase 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 lowercase 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