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 org.openrdf.query.resultio.TupleQueryResultFormat;
09: import org.openrdf.query.resultio.TupleQueryResultParser;
10: import org.openrdf.query.resultio.TupleQueryResultParserFactory;
11:
12: /**
13: * A {@link TupleQueryResultParserFactory} for binary tuple query result
14: * parsers.
15: *
16: * @author Arjohn Kampman
17: */
18: public class BinaryQueryResultParserFactory implements
19: TupleQueryResultParserFactory {
20:
21: /**
22: * Returns {@link TupleQueryResultFormat#BINARY}.
23: */
24: public TupleQueryResultFormat getTupleQueryResultFormat() {
25: return TupleQueryResultFormat.BINARY;
26: }
27:
28: /**
29: * Returns a new instance of BinaryQueryResultParser.
30: */
31: public TupleQueryResultParser getParser() {
32: return new BinaryQueryResultParser();
33: }
34: }
|