Class NTriplesWriter

java.lang.Object
org.eclipse.rdf4j.rio.helpers.AbstractRDFWriter
org.eclipse.rdf4j.rio.ntriples.NTriplesWriter
All Implemented Interfaces:
CharSink, Sink, RDFHandler, RDFWriter
Direct Known Subclasses:
NQuadsWriter

public class NTriplesWriter extends AbstractRDFWriter implements CharSink
An implementation of the RDFWriter interface that writes RDF documents in N-Triples format. The N-Triples format is defined in this section of the RDF Test Cases document.
  • Field Details

    • writer

      protected final Writer writer
  • Constructor Details

    • NTriplesWriter

      public NTriplesWriter(OutputStream out)
      Creates a new NTriplesWriter that will write to the supplied OutputStream.
      Parameters:
      out - The OutputStream to write the N-Triples document to.
    • NTriplesWriter

      public NTriplesWriter(Writer writer)
      Creates a new NTriplesWriter that will write to the supplied Writer.
      Parameters:
      writer - The Writer to write the N-Triples document to.
  • Method Details