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.text;
07:
08: import org.openrdf.query.resultio.BooleanQueryResultFormat;
09: import org.openrdf.query.resultio.BooleanQueryResultParser;
10: import org.openrdf.query.resultio.BooleanQueryResultParserFactory;
11:
12: /**
13: * A {@link BooleanQueryResultParserFactory} for plain text boolean result
14: * parsers.
15: *
16: * @author Arjohn Kampman
17: */
18: public class BooleanTextParserFactory implements
19: BooleanQueryResultParserFactory {
20:
21: /**
22: * Returns {@link BooleanQueryResultFormat#BINARY}.
23: */
24: public BooleanQueryResultFormat getBooleanQueryResultFormat() {
25: return BooleanQueryResultFormat.TEXT;
26: }
27:
28: /**
29: * Returns a new instance of BooleanTextParser.
30: */
31: public BooleanQueryResultParser getParser() {
32: return new BooleanTextParser();
33: }
34: }
|