Class RDFXMLWriter

java.lang.Object
org.eclipse.rdf4j.rio.helpers.AbstractRDFWriter
org.eclipse.rdf4j.rio.rdfxml.RDFXMLWriter
All Implemented Interfaces:
CharSink, Sink, RDFHandler, RDFWriter
Direct Known Subclasses:
RDFXMLPrettyWriter

public class RDFXMLWriter extends AbstractRDFWriter implements CharSink
An implementation of the RDFWriter interface that writes RDF documents in XML-serialized RDF format.
  • Field Details

    • baseIRI

      protected final ParsedIRI baseIRI
    • writer

      protected final Writer writer
    • defaultNamespace

      protected String defaultNamespace
    • headerWritten

      protected boolean headerWritten
    • lastWrittenSubject

      protected Resource lastWrittenSubject
    • quote

      protected char quote
    • entityQuote

      protected boolean entityQuote
  • Constructor Details

    • RDFXMLWriter

      public RDFXMLWriter(OutputStream out)
      Creates a new RDFXMLWriter that will write to the supplied OutputStream.
      Parameters:
      out - The OutputStream to write the RDF/XML document to.
    • RDFXMLWriter

      public RDFXMLWriter(OutputStream out, ParsedIRI baseIRI)
      Creates a new RDFXMLWriter that will write to the supplied OutputStream.
      Parameters:
      out - The OutputStream to write the RDF/XML document to.
      baseIRI - base URI
    • RDFXMLWriter

      public RDFXMLWriter(Writer writer)
      Creates a new RDFXMLWriter that will write to the supplied Writer.
      Parameters:
      writer - The Writer to write the RDF/XML document to.
    • RDFXMLWriter

      public RDFXMLWriter(Writer writer, ParsedIRI baseIRI)
      Creates a new RDFXMLWriter that will write to the supplied Writer.
      Parameters:
      writer - The Writer to write the RDF/XML document to.
      baseIRI - base URI
  • Method Details