public List <OriginalRecord> prepareRecordList() { recordList = new List <OriginalRecord>(); try { for (int i = 0; i < sourceFileList.Count; i++) { sourceFile = sourceFileList[i]; sourceFile.prepareReader(); while (sourceFile.hasNext()) { nowLine = sourceFile.getLine(); record = OriginalRecordConverter.getOriginalRecord(nowLine); recordList.Add(record); }//end while sourceFile.close(); }//end for return(recordList); } catch (Exception e) { Console.WriteLine(e.StackTrace); return(null); } }
public void setSourceFile(TradeFile sourceFile) { this.sourceFile = sourceFile; sourceFile.prepareReader(); }