org.exist.xmldb
Class ResourceIteratorImpl
java.lang.Object
org.exist.xmldb.ResourceIteratorImpl
- All Implemented Interfaces:
- ResourceIterator
- public class ResourceIteratorImpl
- extends java.lang.Object
- implements ResourceIterator
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
rpcClient
protected org.apache.xmlrpc.XmlRpcClient rpcClient
collection
protected RemoteCollection collection
resources
protected java.util.Vector resources
pos
protected int pos
indentXML
protected int indentXML
encoding
protected java.lang.String encoding
ResourceIteratorImpl
public ResourceIteratorImpl(RemoteCollection col,
java.util.Vector resources,
int indentXML,
java.lang.String encoding)
getLength
public int getLength()
hasMoreResources
public boolean hasMoreResources()
throws XMLDBException
- Description copied from interface:
ResourceIterator
- Returns true as long as there are still more resources to be iterated.
- Specified by:
hasMoreResources
in interface ResourceIterator
- Returns:
- true if there are more resources to iterate, false otherwise.
- Throws:
XMLDBException
- with expected error codes.
ErrorCodes.VENDOR_ERROR
for any vendor
specific errors that occur.
setNext
public void setNext(int next)
nextResource
public Resource nextResource()
throws XMLDBException
- Description copied from interface:
ResourceIterator
- Returns the next
Resource
instance in the iterator.
- Specified by:
nextResource
in interface ResourceIterator
- Returns:
- the next
Resource
instance in the iterator.
- Throws:
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.
Copyright (C) Wolfgang Meier. All rights reserved.