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.rio.turtle;
07:
08: import org.openrdf.rio.RDFFormat;
09: import org.openrdf.rio.RDFParser;
10: import org.openrdf.rio.RDFParserFactory;
11: import org.openrdf.rio.turtle.TurtleParser;
12:
13: /**
14: * An {@link RDFParserFactory} for Turtle parsers.
15: *
16: * @author Arjohn Kampman
17: */
18: public class TurtleParserFactory implements RDFParserFactory {
19:
20: /**
21: * Returns {@link RDFFormat#TURTLE}.
22: */
23: public RDFFormat getRDFFormat() {
24: return RDFFormat.TURTLE;
25: }
26:
27: /**
28: * Returns a new instance of {@link TurtleParser}.
29: */
30: public RDFParser getParser() {
31: return new TurtleParser();
32: }
33: }
|