private static void checkTokenName ( String namedOutput ) { if ( namedOutput == null || namedOutput . length ( ) == 0 ) { throw new IllegalArgumentException ( "Name cannot be NULL or emtpy" ) ; } for ( char ch : namedOutput . toCharArray ( ) ) { if ( ( ch >= ' ' ) && ( ch <= ' ' ) ) { continue ; } if ( ( ch >= ' ' ) && ( ch <= ' ' ) ) { continue ; } if ( ( ch >= ' ' ) && ( ch <= ' ' ) ) { continue ; } throw new IllegalArgumentException ( "Name cannot be have a '" + ch + "' char" ) ; } }
Checks if a named output name is valid token .