Class JSONLDWriter

    • Constructor Summary

      Constructors 
      Constructor Description
      JSONLDWriter​(java.io.OutputStream theStream, Options theOptions)
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void comment​(java.lang.String theComment)
      Deprecated.
      Write a comment to the output.
      void end()
      Deprecated.
      Signals the writing process is completed.
      RDFFormat format()
      Deprecated.
      The format this writer will serialize output in.
      void handle​(Statement theStmt)
      Deprecated.
      Write the given Statement
      void namespace​(java.lang.String thePrefix, java.lang.String theIRI)
      Deprecated.
      Provide a namespace to the writer.
      void start()
      Deprecated.
      Signals that the RDF writing process is starting.
      java.util.Map<java.lang.String,​java.lang.Object> toObject​(com.github.jsonldjava.core.RDFDataset.Node node)
      Deprecated.
      Duplicated from RDFDataset.Node.toObject which has private access
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JSONLDWriter

        public JSONLDWriter​(@Nonnull
                            java.io.OutputStream theStream,
                            @Nonnull
                            Options theOptions)
        Deprecated.
    • Method Detail

      • comment

        public void comment​(@Nonnull
                            java.lang.String theComment)
        Deprecated.
        Write a comment to the output. Writing need not be started at this point; comments can be written prior to any actual serialized RDF
        Specified by:
        comment in interface RDFWriter
        Parameters:
        theComment - the comment to write
      • start

        public void start()
        Deprecated.
        Signals that the RDF writing process is starting.
        Specified by:
        start in interface RDFHandler
        Specified by:
        start in interface RDFWriter
      • namespace

        public void namespace​(@Nonnull
                              java.lang.String thePrefix,
                              @Nonnull
                              java.lang.String theIRI)
        Deprecated.
        Provide a namespace to the writer. This method can be called before writing has started, in which case, the namespace bindings are buffered and written when appropriate after writing has begun.
        Specified by:
        namespace in interface RDFHandler
        Specified by:
        namespace in interface RDFWriter
        Parameters:
        thePrefix - the namespace prefix
        theIRI - the associated IRI
      • end

        public void end()
        Deprecated.
        Signals the writing process is completed. The underlying InputStream is *not* closed, but the caller should not call additional methods on this writer as that will normally yield syntax errors in the output.
        Specified by:
        end in interface RDFHandler
        Specified by:
        end in interface RDFWriter
      • toObject

        public java.util.Map<java.lang.String,​java.lang.Object> toObject​(com.github.jsonldjava.core.RDFDataset.Node node)
                                                                        throws com.github.jsonldjava.core.JsonLdError
        Deprecated.
        Duplicated from RDFDataset.Node.toObject which has private access
        Throws:
        com.github.jsonldjava.core.JsonLdError
      • format

        @Nonnull
        public RDFFormat format()
        Deprecated.
        The format this writer will serialize output in.
        Specified by:
        format in interface RDFWriter
        Returns:
        the format