01: /*
02: * Copyright Aduna (http://www.aduna-software.com/) (c) 2007.
03: *
04: * Licensed under the Aduna BSD-style license.
05: */
06: package org.openrdf.query.resultio.sparqlxml;
07:
08: import java.io.OutputStream;
09:
10: import org.openrdf.query.resultio.TupleQueryResultFormat;
11: import org.openrdf.query.resultio.TupleQueryResultWriter;
12: import org.openrdf.query.resultio.TupleQueryResultWriterFactory;
13:
14: /**
15: * A {@link TupleQueryResultWriterFactory} for writers of SPARQL/XML tuple query
16: * results.
17: *
18: * @author Arjohn Kampman
19: */
20: public class SPARQLResultsXMLWriterFactory implements
21: TupleQueryResultWriterFactory {
22:
23: /**
24: * Returns {@link TupleQueryResultFormat#SPARQL}.
25: */
26: public TupleQueryResultFormat getTupleQueryResultFormat() {
27: return TupleQueryResultFormat.SPARQL;
28: }
29:
30: /**
31: * Returns a new instance of {@link SPARQLResultsXMLWriter}.
32: */
33: public TupleQueryResultWriter getWriter(OutputStream out) {
34: return new SPARQLResultsXMLWriter(out);
35: }
36: }
|