code: protected void gotoEOR(ArchiveRecord record) throws IOException {
          if (getIn().available() <= 0) {
              return;
          }
          
          // Remove any trailing LINE_SEPARATOR
          int c = -1;
          while (getIn().available() > 0) {
              if (getIn().markSupported()) {
                  getIn().mark(1);
              }
              c = getIn().read();
              if (c != -1) {
                  if (c == LINE_SEPARATOR) {
                      continue;
                  }
                  if (getIn().markSupported()) {
                      // We've overread.  We're probably in next record.  There is
                      // no way of telling for sure. It may be dross at end of
                      // current record. Backup.
                          getIn().reset();
                      break;
                  }
                  ArchiveRecordHeader h = (getCurrentRecord() != null)?
                      record.getHeader(): null;
                  throw new IOException("Read " + (char)c +
                      " when only " + LINE_SEPARATOR + " expected. " + 
                      getReaderIdentifier() + ((h != null)?
                          h.getHeaderFields().toString(): ""));
              }
          }
      }
docs: Skip over any trailing new lines at end of the record so we're lined up
  ready to read the next.
  @param record
  @throws IOException