Package com.yahoo.document.json
Class DocumentUpdateJsonSerializer
java.lang.Object
com.yahoo.document.json.DocumentUpdateJsonSerializer
The DocumentUpdateJsonSerializer utility class is used to serialize a DocumentUpdate instance using the JSON format described in
Document JSON Format: The Update Structure
- Author:
- Vegard Sjonfjell
- See Also:
-
Constructor Summary
ConstructorDescriptionDocumentUpdateJsonSerializer
(com.fasterxml.jackson.core.JsonGenerator generator) Instantiate a DocumentUpdateJsonSerializer that writes JSON using existing JsonGeneratorDocumentUpdateJsonSerializer
(OutputStream outputStream) Instantiate a DocumentUpdateJsonSerializer that outputs JSON to an OutputStream -
Method Summary
Modifier and TypeMethodDescriptionvoid
serialize
(DocumentUpdate update) Serialize a DocumentUpdate tree to JSON
-
Constructor Details
-
DocumentUpdateJsonSerializer
Instantiate a DocumentUpdateJsonSerializer that outputs JSON to an OutputStream -
DocumentUpdateJsonSerializer
public DocumentUpdateJsonSerializer(com.fasterxml.jackson.core.JsonGenerator generator) Instantiate a DocumentUpdateJsonSerializer that writes JSON using existing JsonGenerator
-
-
Method Details
-
serialize
Serialize a DocumentUpdate tree to JSON
-