public interface ResultSetReader
-
Method Summary
Modifier and TypeMethodDescriptiondefault ResultSetread(InputStream in, Context context) Read from anInputStreamand produce aResultSet.default ResultSetUsingread(InputStream, Context)is preferred.readAny(InputStream in, Context context) Read from anInputStreamand produce aSPARQLResult.
-
Method Details
-
read
Read from anInputStreamand produce aResultSet. Note that return result may stream and so the input stream may be read while theResultSetis used. SeeResultSetFactory.copyResults(ResultSet)for a ResultSet that is detached from theInputStream.- Parameters:
in- InputStream to read from.context-- Returns:
- ResultSet
-
readAny
Read from anInputStreamand produce aSPARQLResult. Note that return result may stream and so the input stream may be read while theResultSetis 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
Readerand 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
-