|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--au.com.prunge.jgenfile.impl.CollectionItemIterator
An iterator that uses a java.util.Iterator to get items.
Constructor Summary | |
CollectionItemIterator(Iterator iterator)
Constructs a CollectionItemIterator . |
Method Summary | |
protected void |
checkClose()
Checks if the iterator has been closed. |
void |
close()
Closes the iterator. |
boolean |
hasNext()
Returns true if the iteration has more elements. |
au.com.prunge.jgenfile.Item |
next()
Returns the next item in the iteration. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CollectionItemIterator(Iterator iterator)
CollectionItemIterator
.
iterator
- the collection iterator to use.
NullPointerException
- if iterator
is null.Method Detail |
public void close() throws JGenFileException
ItemIterator
close
in interface ItemIterator
JGenFileException
- if an error occurs closing
the iterator.ItemIterator.close()
public boolean hasNext() throws ClosedIteratorException, JGenFileException
ItemIterator
hasNext
in interface ItemIterator
JGenFileException
- if another error occurs.
ClosedIteratorException
- if the iterator has
been closed.ItemIterator.hasNext()
protected void checkClose() throws ClosedIteratorException
ClosedIteratorException
- if the iterator has been closed.public au.com.prunge.jgenfile.Item next() throws NoSuchElementException, ClosedIteratorException, JGenFileException
ItemIterator
next
in interface ItemIterator
NoSuchElementException
- if there are no more
items in the iteration.
ClosedIteratorException
- if the iterator has
been closed.
JGenFileException
- if another error occurs.ItemIterator.next()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |