org.jrdf.parser.ntriples
Class NTriplesFormatParser
java.lang.Object
org.jrdf.parser.ntriples.NTriplesFormatParser
- All Implemented Interfaces:
- FormatParser, StatementHandler
public class NTriplesFormatParser
- extends Object
- implements FormatParser
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NTriplesFormatParser
public NTriplesFormatParser(TriplesParser newParser)
parseLine
public void parseLine(CharSequence line)
- Specified by:
parseLine in interface FormatParser
getTriple
public Triple getTriple()
- Specified by:
getTriple in interface FormatParser
handleStatement
public void handleStatement(SubjectNode subject,
PredicateNode predicate,
ObjectNode object)
- Description copied from interface:
StatementHandler
- Called by an RDF parser when it has parsed a statement. The type of the
subject, predicate and object is determined by the ValueFactory that
the parser uses.
- Specified by:
handleStatement in interface StatementHandler
- Parameters:
subject - A URI or bNode.predicate - A URI.object - A URI, bNode or literal.