Construct a StreamSource from a character reader. Normally,
a stream should be used rather than a reader, so that
the XML parser may resolve character encoding specified
by the XML declaration. However, in many cases the encoding
of the input stream is already resolved, as in the case of
reading XML from a StringReader.
Parameters:
-
reader - A valid Reader reference to an XML character stream.
-
systemId - Must be a String that conforms to the URI syntax.