Class TransactionWriter


  • public class TransactionWriter
    extends java.lang.Object
    Serializes of an RDF transaction.
    • Constructor Detail

      • TransactionWriter

        public TransactionWriter()
    • Method Detail

      • serialize

        public void serialize​(java.lang.Iterable<? extends TransactionOperation> txn,
                              java.io.OutputStream out)
                       throws java.io.IOException
        serialize the passed list of operations to the passed writer.
        Parameters:
        txn - the operations
        out - the output stream to write to
        Throws:
        java.io.IOException
        java.lang.IllegalArgumentException - when one of the parameters is null
      • serialize

        protected void serialize​(TransactionOperation op,
                                 XMLWriter xmlWriter)
                          throws java.io.IOException
        Serializes the supplied operation.
        Parameters:
        op - The operation to serialize
        xmlWriter -
        Throws:
        java.io.IOException
      • serialize

        protected void serialize​(StatementOperation op,
                                 XMLWriter xmlWriter)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • serialize

        protected void serialize​(ClearOperation op,
                                 XMLWriter xmlWriter)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • serialize

        protected void serialize​(Resource[] contexts,
                                 XMLWriter xmlWriter)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • serialize

        protected void serialize​(Value value,
                                 XMLWriter xmlWriter)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • serialize

        protected void serialize​(Resource resource,
                                 XMLWriter xmlWriter)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • serialize

        protected void serialize​(IRI uri,
                                 XMLWriter xmlWriter)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • serialize

        protected void serialize​(BNode bnode,
                                 XMLWriter xmlWriter)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • serialize

        protected void serialize​(Literal literal,
                                 XMLWriter xmlWriter)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • serializeNull

        protected void serializeNull​(XMLWriter xmlWriter)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • serialize

        protected void serialize​(Triple triple,
                                 XMLWriter xmlWriter)
                          throws java.io.IOException
        Throws:
        java.io.IOException