Package org.duracloud.client
Class ContentIterator
java.lang.Object
org.duracloud.client.ContentIterator
Iterates over the content list in a DuraCloud space. Handles the chunked
nature of long item lists internally, allowing the caller to simply
call next() to iterate through the entire content listing, regardless
of its length.
-
Constructor Summary
ConstructorsConstructorDescriptionContentIterator(ContentStore store, String spaceId, String prefix) ContentIterator(ContentStore store, String spaceId, String prefix, long maxResults) -
Method Summary
Modifier and TypeMethodDescriptionbooleanhasNext()next()voidremove()voidsetMaxRetries(int maxRetries) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
ContentIterator
public ContentIterator(ContentStore store, String spaceId, String prefix) throws ContentStoreException - Throws:
ContentStoreException
-
ContentIterator
public ContentIterator(ContentStore store, String spaceId, String prefix, long maxResults) throws ContentStoreException - Throws:
ContentStoreException
-
-
Method Details