public interface ResultSetReader
-
Method Summary
Modifier and TypeMethodDescriptiondefault ResultSet
read
(InputStream in, Context context) Read from anInputStream
and produce aResultSet
.default ResultSet
Usingread(InputStream, Context)
is preferred.readAny
(InputStream in, Context context) Read from anInputStream
and produce aSPARQLResult
.
-
Method Details
-
read
Read from anInputStream
and produce aResultSet
. Note that return result may stream and so the input stream may be read while theResultSet
is used. SeeResultSetFactory.copyResults(ResultSet)
for a ResultSet that is detached from theInputStream
.- Parameters:
in
- InputStream to read from.context
-- Returns:
- ResultSet
-
readAny
Read from anInputStream
and produce aSPARQLResult
. Note that return result may stream and so the input stream may be read while theResultSet
is used. Seeread(InputStream, Context)
for more details- Parameters:
in
- InputStream to read from.context
-- Returns:
- SPARQLResult
-
read
Usingread(InputStream, Context)
is preferred.Not all formats support reading from a
java.io.Reader
.Read from an
Reader
and produce aResultSet
. Note that return result may stream and so the reader may be read while the ResultSet is used. SeeResultSetFactory.copyResults(ResultSet)
for a ResultSet that is detached from theInputStream
.- Parameters:
in
- Readercontext
-- Returns:
- ResultSet
-