|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.contentmanagement.contentmanager.stubs.calls.iterators.BaseRSIterator<T>
org.gcube.contentmanagement.contentmanager.stubs.calls.iterators.RSIterator<T>
public class RSIterator<T>
A RemoteIterator over a result set with an embedded ResultParser.
| Constructor Summary | |
|---|---|
RSIterator(java.net.URI l,
ResultParser<T> p)
Creates an instance with a result set locator and a result parser. |
|
RSIterator(java.net.URI l,
ResultParser<T> p,
int timeout)
Creates an instance with a result set locator, a result parser, and a read timeout. |
|
| Method Summary | |
|---|---|
boolean |
hasNext()
Indicates whether there are more elements to iterate over. |
T |
next()
Returns the next element. |
| Methods inherited from class org.gcube.contentmanagement.contentmanager.stubs.calls.iterators.BaseRSIterator |
|---|
close, getRSIterator, locator |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RSIterator(java.net.URI l,
ResultParser<T> p)
throws java.lang.Exception
l - the locator.p - the parser.
java.lang.Exception - if the result set could not be accessed from the locator.
public RSIterator(java.net.URI l,
ResultParser<T> p,
int timeout)
throws java.lang.Exception
l - the locator.p - the parser.timeout - the timeout, in seconds.
java.lang.Exception - if the result set could not be accessed from the locator.| Method Detail |
|---|
public boolean hasNext()
true if there are more elements, false otherwise.
public T next()
throws java.lang.Exception,
java.util.NoSuchElementException
java.lang.Exception - if the element could not be returned.
java.util.NoSuchElementException - if there are no further elements to iterate over.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||