code: private void skipToEndOfLine() throws IOException {
          while (pos < limit || fillBuffer(1)) {
              char c = buffer[pos++];
              if (c == '\r' || c == '\n') {
                  break;
              }
          }
      }
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.