org.apache.jackrabbit.core.journal
Interface RecordIterator

All Known Implementing Classes:
FileRecordIterator, MemoryJournal.MemoryRecordIterator

public interface RecordIterator

RecordIterator interface.


Method Summary
 void close()
          Close this iterator.
 boolean hasNext()
          Return a flag indicating whether there are more records.
 Record nextRecord()
          Return the next record.
 

Method Detail

hasNext

boolean hasNext()
Return a flag indicating whether there are more records.

Returns:
true if there are more records; false otherwise

nextRecord

Record nextRecord()
                  throws NoSuchElementException,
                         JournalException
Return the next record. If there are no more recors, throws a NoSuchElementException. If an error occurs, throws a JournalException.

Returns:
next record
Throws:
NoSuchElementException - if there are no more records
JournalException - if another error occurs

close

void close()
Close this iterator. Releases all associated resources.



Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.