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