static boolean isInvalidJavaWhiteSpace(int c){
  int[] exceptions={0x00A0,0x2007,0x202F,0xFEFF};
  boolean retValue=false;
  for (int x=0; x < exceptions.length; x++) {
    if (c == exceptions[x]) {
      retValue=true;
      break;
    }
  }
  return retValue;
}

static boolean isInvalidJavaWhiteSpace ( int c ) { int [ ] exceptions = { 0x00A0 , 0x2007 , 0x202F , 0xFEFF } ; boolean retValue = false ; for ( int x = 0 ; x < exceptions . length ; x ++ ) { if ( c == exceptions [ x ] ) { retValue = true ; break ; } } return retValue ; }
some unicode separator characters are not considered java whitespace .
