code: private void skipToEndOfLine() throws IOException {
      long index = source.indexOfElement(LINEFEED_OR_CARRIAGE_RETURN);
      buffer.skip(index != -1 ? index + 1 : buffer.size());
    }
docs: Advances the position until after the next newline character. If the line
  is terminated by "\r\n", the '\n' must be consumed as whitespace by the
  caller.