Bug 6910: Fix anyxml node streaming 76/46776/2
authorTom Pantelis <tpanteli@brocade.com>
Mon, 10 Oct 2016 20:57:32 +0000 (16:57 -0400)
committerTom Pantelis <tpanteli@brocade.com>
Tue, 11 Oct 2016 18:33:53 +0000 (14:33 -0400)
commite12c3c9d369c6f04fbbf68dfdf11052c8e2bd9ab
tree201ff33a186f23503588f756d8b1382be7743ed9
parentc5b1b3f0851d8e56710d8e60384f6799e1b0a68b
Bug 6910: Fix anyxml node streaming

On output, changed AbstractNormalizedNodeDataOutput to transform the
DOMSource to a result String that is serialized to the stream. On input,
modified NormalizedNodeInputStreamReader to parse the XML string into
a org.w3c.dom.Node and create a DOMSource.

Change-Id: Ib10822c4444331351cf7f25e1f26d981f7d41dc7
Signed-off-by: Tom Pantelis <tpanteli@brocade.com>
(cherry picked from commit 2cf4749c41aa32c6b77064fc1ae0e231adc4a5f4)
opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/AbstractNormalizedNodeDataOutput.java
opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/NormalizedNodeInputStreamReader.java
opendaylight/md-sal/sal-clustering-commons/src/test/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/NormalizedNodeStreamReaderWriterTest.java