public class ResultSetMgr extends Object
ResultSetFormatter
provides output to text.ResultSetFactory
,
ResultSetFormatter
Constructor and Description |
---|
ResultSetMgr() |
Modifier and Type | Method and Description |
---|---|
static ResultSet |
parse(String uri,
Lang hintLang,
Context context)
Read ResultSet.
|
static ResultSet |
read(InputStream in,
Lang lang)
|
static ResultSet |
read(String uri)
Read a result set from the URI
|
static ResultSet |
read(String uri,
Lang lang)
Read a result set from the URI, in the specified syntax
|
static void |
write(OutputStream out,
boolean result,
Lang lang)
Write a SPARQL boolean result to the output stream in the specified language/syntax.
|
static void |
write(OutputStream out,
ResultSet resultSet,
Lang lang)
Write a SPARQL result set to the output stream in the specified language/syntax.
|
public static ResultSet read(InputStream in, Lang lang)
InputStream
and produce a ResultSet
;
the stream is expect to use syntax lang
. Note that returned
result set may stream and so the input stream be read while the ResultSet is used.
See ResultSetFactory.copyResults(ResultSet)
for a ResultSet that is detached from the InputStream
.in
- lang
- public static ResultSet read(String uri, Lang lang)
public static ResultSet parse(String uri, Lang hintLang, Context context)
uri
- URI to read from (includes file: and a plain file name).hintLang
- Hint for the syntaxcontext
- Content object to control reading process.public static void write(OutputStream out, ResultSet resultSet, Lang lang)
out
- resultSet
- lang
- public static void write(OutputStream out, boolean result, Lang lang)
out
- result
- lang
- Licenced under the Apache License, Version 2.0