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.binary;
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 binary query results.
16: *
17: * @author Arjohn Kampman
18: */
19: public class BinaryQueryResultWriterFactory implements
20: TupleQueryResultWriterFactory {
21:
22: /**
23: * Returns {@link TupleQueryResultFormat#BINARY}.
24: */
25: public TupleQueryResultFormat getTupleQueryResultFormat() {
26: return TupleQueryResultFormat.BINARY;
27: }
28:
29: /**
30: * Returns a new instance of BinaryQueryResultWriter.
31: */
32: public TupleQueryResultWriter getWriter(OutputStream out) {
33: return new BinaryQueryResultWriter(out);
34: }
35: }
|