Fixed
Details
Assignee
Ian YoungIan YoungReporter
Ian YoungIan YoungComponents
Fix versions
Affects versions
Details
Details
Assignee
Ian Young
Ian YoungReporter
Ian Young
Ian YoungComponents
Fix versions
Affects versions
Created March 7, 2014 at 6:16 PM
Updated December 22, 2015 at 6:01 PM
Resolved March 25, 2015 at 11:26 AM
The current ItemSerializer interface actually serialises a collection of items; the DOMElementSerializer implementation ignores all but the first of those.
It would be better for ItemSerializer to only serialise a single Item<T> and leave the orchestration (or not) of the Collection to the calling stage.
Both establishing and flushing/closing the OutputStream should be left to the caller; at present, the DOMElementSerializer closes the stream passed in even though it does not open it in the first place.
These changes will allow more reusability of ItemSerializer instances, for example in contexts such as MDA-76.