public Object next() {
public IndexEntry next() {
    public Object next() {        //log.debug("next: offset=" + offset);        if (nextEntry == null) {            //log.debug("next: islast");            throw new NoSuchElementException();        } else {            final IndexEntry result = nextEntry;            final int size = nextEntry.getSize();            //log.debug("next: size=" + size);            offset += size;            // Now read the next next entry            readNext();            return result;        }    }