Interface RDFWriterFactory

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      RDFFormat getRDFFormat()
      Returns the RDF format for this factory.
      RDFWriter getWriter​(java.io.OutputStream out)
      Returns an RDFWriter instance that will write to the supplied output stream.
      RDFWriter getWriter​(java.io.OutputStream out, java.lang.String baseURI)
      Returns an RDFWriter instance that will write to the supplied output stream.
      RDFWriter getWriter​(java.io.Writer writer)
      Returns an RDFWriter instance that will write to the supplied writer.
      RDFWriter getWriter​(java.io.Writer writer, java.lang.String baseURI)
      Returns an RDFWriter instance that will write to the supplied writer.
    • Method Detail

      • getRDFFormat

        RDFFormat getRDFFormat()
        Returns the RDF format for this factory.
      • getWriter

        RDFWriter getWriter​(java.io.OutputStream out)
        Returns an RDFWriter instance that will write to the supplied output stream.
        Parameters:
        out - The OutputStream to write the RDF to.
      • getWriter

        RDFWriter getWriter​(java.io.OutputStream out,
                            java.lang.String baseURI)
                     throws java.net.URISyntaxException
        Returns an RDFWriter instance that will write to the supplied output stream. Using the supplied baseURI to relativize IRIs to relative IRIs.
        Parameters:
        out - The OutputStream to write the RDF to.
        baseURI - The URI associated with the data in the InputStream.
        Throws:
        java.net.URISyntaxException
      • getWriter

        RDFWriter getWriter​(java.io.Writer writer)
        Returns an RDFWriter instance that will write to the supplied writer. (Optional operation)
        Parameters:
        writer - The Writer to write the RDF to.
        Throws:
        java.lang.UnsupportedOperationException - if the RDFWriter the specific format does not support writing to a Writer
      • getWriter

        RDFWriter getWriter​(java.io.Writer writer,
                            java.lang.String baseURI)
                     throws java.net.URISyntaxException
        Returns an RDFWriter instance that will write to the supplied writer. Using the supplied baseURI to relativize IRIs to relative IRIs. (Optional operation)
        Parameters:
        writer - The Writer to write the RDF to.
        baseURI - The URI associated with the data in the InputStream.
        Throws:
        java.net.URISyntaxException
        java.lang.UnsupportedOperationException - if the RDFWriter the specific format does not support writing to a Writer