public RowRecordsAggregate(RecordStream rs, SharedValueManager svm) {this(svm);while(rs.hasNext()) {Record rec = rs.getNext();switch (rec.getSid()) {case RowRecord.sid:insertRow((RowRecord) rec);continue;case DConRefRecord.sid:addUnknownRecord(rec);continue;case DBCellRecord.sid:continue;}if (rec instanceof UnknownRecord) {addUnknownRecord(rec);while (rs.peekNextSid() == ContinueRecord.sid) {addUnknownRecord(rs.getNext());}continue;}if (rec instanceof MulBlankRecord) {_valuesAgg.addMultipleBlanks((MulBlankRecord) rec);continue;}if (!(rec instanceof CellValueRecordInterface)) {throw new RuntimeException("Unexpected record type (" + rec.getClass().getName() + ")");}_valuesAgg.construct((CellValueRecordInterface)rec, rs, svm);}}

public RowRecordsAggregate(RecordStream rs, SharedValueManager svm): this(svm){while (rs.HasNext()){Record rec = rs.GetNext();switch (rec.Sid){case RowRecord.sid:InsertRow((RowRecord)rec);continue;case DConRefRecord.sid:AddUnknownRecord(rec);continue;case DBCellRecord.sid:continue;}if (rec is UnknownRecord){AddUnknownRecord((UnknownRecord)rec);while (rs.PeekNextSid() == ContinueRecord.sid){AddUnknownRecord(rs.GetNext());}continue;}if (rec is MulBlankRecord) {_valuesAgg.AddMultipleBlanks((MulBlankRecord) rec);continue;}if (!(rec is CellValueRecordInterface)){if (rec.Sid == SeriesIndexRecord.sid){AddUnknownRecord(rec);continue;}throw new InvalidOperationException("Unexpected record type (" + rec.GetType().Name + ")");}_valuesAgg.Construct((CellValueRecordInterface)rec, rs, svm);}}
