Class TriGStarWriter

    • Constructor Detail

      • TriGStarWriter

        public TriGStarWriter​(java.io.OutputStream out)
        Creates a new TriGStarWriter that will write to the supplied OutputStream.
        Parameters:
        out - The OutputStream to write the TriG-star document to.
      • TriGStarWriter

        public TriGStarWriter​(java.io.OutputStream out,
                              ParsedIRI baseIRI)
        Creates a new TriGStarWriter that will write to the supplied OutputStream using the supplied base IRI.
        Parameters:
        out - The OutputStream to write the TriG-star document to.
        baseIRI - The base IRI to use.
      • TriGStarWriter

        public TriGStarWriter​(java.io.Writer writer)
        Creates a new TriGStarWriter that will write to the supplied Writer.
        Parameters:
        writer - The Writer to write the TriG-star document to.
      • TriGStarWriter

        public TriGStarWriter​(java.io.Writer writer,
                              ParsedIRI baseIRI)
        Creates a new TriGStarWriter that will write to the supplied Writer using the supplied base IRI.
        Parameters:
        writer - The Writer to write the TriG-star document to.
        baseIRI - The base IRI to use.
    • Method Detail

      • acceptsFileFormat

        public boolean acceptsFileFormat​(FileFormat format)
        Description copied from interface: Sink
        Check if this Sink accepts the supplied FileFormat.
        Parameters:
        format - the FileFormat to check.
        Returns:
        true if the sink accepts the supplied format, false otherwise.
      • writeTriple

        protected void writeTriple​(Triple triple,
                                   boolean canShorten)
                            throws java.io.IOException
        Overrides:
        writeTriple in class TurtleWriter
        Throws:
        java.io.IOException