org.jrdf.parser.ntriples
Class NTriplesFormatParser

java.lang.Object
  extended by org.jrdf.parser.ntriples.NTriplesFormatParser
All Implemented Interfaces:
FormatParser, StatementHandler

public class NTriplesFormatParser
extends Object
implements FormatParser


Constructor Summary
NTriplesFormatParser(TriplesParser newParser)
           
 
Method Summary
 Triple getTriple()
           
 void handleStatement(SubjectNode subject, PredicateNode predicate, ObjectNode object)
          Called by an RDF parser when it has parsed a statement.
 void parseLine(CharSequence line)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NTriplesFormatParser

public NTriplesFormatParser(TriplesParser newParser)
Method Detail

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.