private BatchItem getBatchItem(File file) { List lines = BatchFile.getLines(file.getPath()); if (lines.size() != 1) { string text = "Bad batch file size"; throw new IOException(text); } string batchFileLine = (string)lines.get(0); return(new BatchItem(BatchFile.getFilename(batchFileLine), BatchFile.getReference(batchFileLine))); }
public virtual BatchItem getNextItem() { if (this.curItem >= this.items.size()) { return(null); } List list = this.items; int num = this.curItem; int num2 = num; this.curItem = num + 1; string batchFileLine = (string)list.get(num2); return(new BatchItem(BatchFile.getFilename(batchFileLine), BatchFile.getReference(batchFileLine))); }