code: private int skipNewLines(StreamTokenizer tokeniser, Reader in, String token) throws ParserException, IOException {
          for (int i = 0;; i++) {
              try {
                  return assertToken(tokeniser, in, StreamTokenizer.TT_WORD);
              } catch (ParserException exc) {
                  //Skip a maximum of 10 newlines, linefeeds etc at the beginning
                  if (i == IGNORE_BEGINNING_NON_WORD_COUNT) {
                      throw exc;
                  }
              }
          }
      }
docs: Skip newlines and linefeed at the beginning.
  
  @param tokeniser
  @param in
  @param token
  @return int value of the ttype field of the tokeniser
  @throws ParserException
  @throws IOException