public interface ResultStream
extends java.lang.AutoCloseable
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the session and free any and all associated resources
|
boolean |
first()
Position the cursor at the first element in the result stream
|
byte[] |
getResult()
Return the result at the current position in the stream.
|
boolean |
last()
Position the cursor at the last element in the result stream
|
boolean |
next()
Position the cursor at the next element in the result stream.
|
boolean |
previous()
Position the cursor at the previous element in the result stream
|
boolean next() throws ResultStreamException
ResultStreamException
- on error.boolean first() throws ResultStreamException, UnsupportedFeatureException
ResultStreamException
- on error.UnsupportedFeatureException
- if the feature is unsupported.boolean last() throws ResultStreamException, UnsupportedFeatureException
ResultStreamException
- on error.UnsupportedFeatureException
- if the feature is unsupported.boolean previous() throws ResultStreamException, UnsupportedFeatureException
ResultStreamException
- on error.UnsupportedFeatureException
- if the feature is unsupported.byte[] getResult() throws ResultStreamException
ResultStreamException
void close() throws ResultStreamException
close
in interface java.lang.AutoCloseable
ResultStreamException