code: private boolean isWhitespace(char ch)
      {
          if (linews) 
              return Character.isWhitespace(ch);
          else
              return ch != '\n' && ch != '\r' && Character.isWhitespace(ch);
      }
docs: Checks if a character can be interpreted as whitespace according to current settings.
  @param ch the character
  @return <code>true</code> when <code>ch</code> is a whitespace character