9293949596979899100101
return reports.size() > 1; } protected void iterateThroughFile(LineIterator i) { while (i.hasNext()) { Line l = i.next(); processLine(l); } }
117118119120121122123124125126
232425262728293031323334
public int previous(int i) { model.moveTo(i); while (model.hasPrevious()) { Line l = (Line) model.previous(); if (matches(l)) { return l.getOffset(); } } return -1; }
353637383940414243444546
public int next(int i) { model.moveTo(i + 1); while (model.hasNext()) { Line l = (Line) model.next(); if (matches(l)) { return l.getOffset(); } } return -1; }
1718192021222324252627
public boolean hasNext() { return delegate.hasNext(); } public Line next() { Line l = delegate.next(); l.setValue(LogConstants.FILE_NAME, name); return l; }
41424344454647484950
loadAhead(); if (availableLines.isEmpty()) { throw new NoSuchElementException(); } else { Iterator<Line> i = availableLines.iterator(); Line next = i.next(); i.remove(); return next; } }
909192939495969798
return true; } private Line parse(int from, int to) { Line line = lineParser.parse(content.subSequence(from, to)); line.setOffset(from + offset); return line; }
100101102103104105106107108109110
public Line next() { if (nextLine == null && !hasNext()) { throw new NoSuchElementException(); } Line l = nextLine; nextLine = null; return l; }
return true; } private Line parse(int from, int to) { Line line = lineParser.parse(content.subSequence(from, to)); line.setOffset(from); return line; }