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;
07:
08: import java.io.OutputStream;
09:
10: /**
11: * Returns {@link TupleQueryResultWriter}s for a specific tuple query result
12: * format.
13: *
14: * @author Arjohn Kampman
15: */
16: public interface TupleQueryResultWriterFactory {
17:
18: /**
19: * Returns the tuple query result format for this factory.
20: */
21: public TupleQueryResultFormat getTupleQueryResultFormat();
22:
23: /**
24: * Returns a TupleQueryResultWriter instance that will write to the supplied
25: * output stream.
26: *
27: * @param out
28: * The OutputStream to write the result to.
29: */
30: public TupleQueryResultWriter getWriter(OutputStream out);
31: }
|