private static void checkHexDigit ( int c ) { if ( ! Character . isDigit ( c ) && ! ( c >= ' ' && c <= ' ' ) && ! ( c >= ' ' && c <= ' ' ) ) { throw new IllegalStateException ( "Not a hexadecimal digit: " + c ) ; } }
Checks if the given character is a hexadecimal character