Class TransactionWriter
java.lang.Object
org.eclipse.rdf4j.http.protocol.transaction.TransactionWriter
Serializes of an RDF transaction.
- Author:
- Arjohn Kampman, Leo Sauermann
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidserialize(Iterable<? extends TransactionOperation> txn, OutputStream out) serialize the passed list of operations to the passed writer.protected voidserialize(AddStatementOperation op, XMLWriter xmlWriter) protected voidserialize(ClearNamespacesOperation op, XMLWriter xmlWriter) protected voidserialize(ClearOperation op, XMLWriter xmlWriter) protected voidserialize(RemoveNamespaceOperation op, XMLWriter xmlWriter) protected voidserialize(RemoveStatementsOperation op, XMLWriter xmlWriter) protected voidserialize(SetNamespaceOperation op, XMLWriter xmlWriter) protected voidserialize(SPARQLUpdateOperation op, XMLWriter xmlWriter) protected voidserialize(StatementOperation op, XMLWriter xmlWriter) protected voidserialize(TransactionOperation op, XMLWriter xmlWriter) Serializes the supplied operation.protected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidserializeNull(XMLWriter xmlWriter)
-
Constructor Details
-
TransactionWriter
public TransactionWriter()
-
-
Method Details
-
serialize
public void serialize(Iterable<? extends TransactionOperation> txn, OutputStream out) throws IOException serialize the passed list of operations to the passed writer.- Parameters:
txn- the operationsout- the output stream to write to- Throws:
IOExceptionIllegalArgumentException- when one of the parameters is null
-
serialize
Serializes the supplied operation.- Parameters:
op- The operation to serializexmlWriter-- Throws:
IOException
-
serialize
- Throws:
IOException
-
serialize
- Throws:
IOException
-
serialize
- Throws:
IOException
-
serialize
- Throws:
IOException
-
serialize
- Throws:
IOException
-
serialize
- Throws:
IOException
-
serialize
- Throws:
IOException
-
serialize
- Throws:
IOException
-
serialize
- Throws:
IOException
-
serialize
- Throws:
IOException
-
serialize
- Throws:
IOException
-
serialize
- Throws:
IOException
-
serialize
- Throws:
IOException
-
serialize
- Throws:
IOException
-
serializeNull
- Throws:
IOException
-
serialize
- Throws:
IOException
-