dk.statsbiblioteket.doms.summa.oai
Class ListRecordsResponse.ResumingIterator

java.lang.Object
  extended by dk.statsbiblioteket.doms.summa.oai.ListRecordsResponse.ResumingIterator
All Implemented Interfaces:
java.util.Iterator<Record>
Enclosing class:
ListRecordsResponse

private class ListRecordsResponse.ResumingIterator
extends java.lang.Object
implements java.util.Iterator<Record>

Helper class to transparently iterate over a ListRecords response automatically fetching the next page in case of resumption tokens.


Field Summary
private  java.util.Iterator<Record> currentIter
           
private  ListRecordsResponseSAXParser currentParser
           
 
Constructor Summary
ListRecordsResponse.ResumingIterator(ListRecordsResponseSAXParser firstParser)
           
 
Method Summary
 boolean hasNext()
           
 Record next()
           
private  ListRecordsResponseSAXParser nextParser()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currentParser

private ListRecordsResponseSAXParser currentParser

currentIter

private java.util.Iterator<Record> currentIter
Constructor Detail

ListRecordsResponse.ResumingIterator

public ListRecordsResponse.ResumingIterator(ListRecordsResponseSAXParser firstParser)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<Record>

next

public Record next()
Specified by:
next in interface java.util.Iterator<Record>

remove

public void remove()
Specified by:
remove in interface java.util.Iterator<Record>

nextParser

private ListRecordsResponseSAXParser nextParser()