public Record nextRecord() {Record r;r = getNextUnreadRecord();if (r != null) {return r;}while (true) {if (!_recStream.hasNextRecord()) {return null;}if (_lastRecordWasEOFLevelZero) {if (_recStream.getNextSid() != BOFRecord.sid) {return null;}}_recStream.nextRecord();r = readNextRecord();if (r == null) {continue;}return r;}}

public Record NextRecord(){Record r;r = GetNextUnreadRecord();if (r != null){return r;}while (true){if (!_recStream.HasNextRecord){return null;}_recStream.NextRecord();if (_lastRecordWasEOFLevelZero){if (_recStream.Sid != BOFRecord.sid){return null;}}r = ReadNextRecord();if (r == null){continue;}return r;}}
