public class SimpleResourceIterator extends java.lang.Object implements ResourceIterator
| Modifier and Type | Field and Description |
|---|---|
protected int |
index |
protected java.util.List |
resources |
| Constructor and Description |
|---|
SimpleResourceIterator(java.util.List resources) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasMoreResources()
Returns true as long as there are still more resources to be iterated.
|
Resource |
nextResource()
Returns the next
Resource instance in the iterator. |
public boolean hasMoreResources()
throws XMLDBException
hasMoreResources in interface ResourceIteratorXMLDBException - with expected error codes.ErrorCodes.VENDOR_ERROR for any vendor
specific errors that occur.public Resource nextResource() throws XMLDBException
Resource instance in the iterator.nextResource in interface ResourceIteratorResource instance in the iterator.XMLDBException - with expected error codes.ErrorCodes.VENDOR_ERROR for any vendor
specific errors that occur.ErrorCodes.NO_SUCH_RESOURCE if the resource iterator is
empty or all resources have already been retrieved.