which is confusing because only allows the usage of the XMLReader via the document URI retrieval.
That method should be deprecated, and instead a new setXMLReader(XMLReader) could be added. That way, one can specify an XMLReader to be used by the factory, regardless of the chosen input variant (stream, reader or URI retrieval).
Interface
DocumentFactory
in thedom
module has the following method variant:https://github.com/css4j/echosvg/blob/a42e24dcf08508ff78955ef3e35ff9871dfb95f6/echosvg-dom/src/main/java/io/sf/carte/echosvg/dom/util/DocumentFactory.java#L80
which is confusing because only allows the usage of the
XMLReader
via the document URI retrieval.That method should be deprecated, and instead a new
setXMLReader(XMLReader)
could be added. That way, one can specify anXMLReader
to be used by the factory, regardless of the chosen input variant (stream, reader or URI retrieval).