public static boolean containsOnlyWhitespaces(final char[] chars,final int start,final int length){
  final String string=new String(chars,start,length);
  final int stringLength=string.length();
  for (int index=0; index < stringLength; index++) {
    final char character=string.charAt(index);
    if (character >= 0x21 && character <= 0x7E) {
      return false;
    }
  }
  return true;
}

public static boolean containsOnlyWhitespaces ( final char [ ] chars , final int start , final int length ) { final String string = new String ( chars , start , length ) ; final int stringLength = string . length ( ) ; for ( int index = 0 ; index < stringLength ; index ++ ) { final char character = string . charAt ( index ) ; if ( character >= 0x21 && character <= 0x7E ) { return false ; } } return true ; }
tests if the given char array contains only whitespaces
