protected boolean isWhitespace(char ch){
  return ((ch == '\t') || Character.isSpaceChar(ch));
}

protected boolean isWhitespace ( char ch ) { return ( ( ch == '\t' ) || Character . isSpaceChar ( ch ) ) ; }
checks whether a character is a whitespace character . rfc 2616 , section 2 . 2 defines space and horizontal tab as whitespace . the optional preceeding line break is irrelevant , since header continuation is handled transparently when parsing messages .
