|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openrdf.query.resultio.sparqlxml.SPARQLResultsXMLWriter
public class SPARQLResultsXMLWriter
A TupleQueryResultWriter that writes tuple query results in the SPARQL Query Results XML
Format.
| Constructor Summary | |
|---|---|
SPARQLResultsXMLWriter(OutputStream out)
|
|
SPARQLResultsXMLWriter(XMLWriter xmlWriter)
|
|
| Method Summary | |
|---|---|
void |
endQueryResult()
Indicates the end of a sequence of solutions. |
TupleQueryResultFormat |
getTupleQueryResultFormat()
Gets the query result format that this writer uses. |
void |
handleSolution(BindingSet bindingSet)
Handles a solution. |
void |
setPrettyPrint(boolean prettyPrint)
Enables/disables addition of indentation characters and newlines in the XML document. |
void |
startQueryResult(List<String> bindingNames)
Indicates the start of a sequence of Solutions. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SPARQLResultsXMLWriter(OutputStream out)
public SPARQLResultsXMLWriter(XMLWriter xmlWriter)
| Method Detail |
|---|
public final TupleQueryResultFormat getTupleQueryResultFormat()
TupleQueryResultWriter
getTupleQueryResultFormat in interface TupleQueryResultWriterpublic void setPrettyPrint(boolean prettyPrint)
#startTupleSet is called).
public void startQueryResult(List<String> bindingNames)
throws TupleQueryResultHandlerException
TupleQueryResultHandler
startQueryResult in interface TupleQueryResultHandlerbindingNames - An ordered set of binding names.
TupleQueryResultHandlerException
public void endQueryResult()
throws TupleQueryResultHandlerException
TupleQueryResultHandler
endQueryResult in interface TupleQueryResultHandlerTupleQueryResultHandlerException
public void handleSolution(BindingSet bindingSet)
throws TupleQueryResultHandlerException
TupleQueryResultHandler
handleSolution in interface TupleQueryResultHandlerTupleQueryResultHandlerException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||