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 NUL
      NUL.
      static char QUOTE
      Single Quote ['].
      static char SPACE
      Space.
      static char TAB
      Tab.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Chars()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private static char getLowerCaseAlphaDigit​(int digit)  
      static char getLowerCaseHex​(int digit)
      Converts a digit into an lower-case hexadecimal character or the null character if invalid.
      private static char getNumericalDigit​(int digit)  
      private static char getUpperCaseAlphaDigit​(int digit)  
      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
    • Constructor Detail

      • Chars

        private Chars()
    • 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
      • getNumericalDigit

        private static char getNumericalDigit​(int digit)
      • getUpperCaseAlphaDigit

        private static char getUpperCaseAlphaDigit​(int digit)
      • getLowerCaseAlphaDigit

        private static char getLowerCaseAlphaDigit​(int digit)