LineIndex lineIndex = format.getLineIndex(buffer);
BasicLineIterator i = new BasicLineIterator(lineIndex);
EventList eventIndex = format.getEventList(lineIndex);
while (i.hasNext()) {
Line line = i.next();
Event event = eventIndex.readEvent(line);
if (event != null) {
System.out.println(event.toString());
}
}