private static int findWhitespace ( CharSequence s , int start ) { final int len = s . length ( ) ; for ( int i = start ; i < len ; i ++ ) { if ( Character . isWhitespace ( s . charAt ( i ) ) ) { return i ; } } return len ; }
Finds and returns the first whitespace character in the given sequence at or after start . Returns the length of the string if no whitespace is found .