Skip to content

Use Document as Input in the SVGImageReader #452

Open
j-p-sequeira wants to merge 3 commits intoharaldk:masterfrom
j-p-sequeira:patch-1
Open

Use Document as Input in the SVGImageReader #452
j-p-sequeira wants to merge 3 commits intoharaldk:masterfrom
j-p-sequeira:patch-1

Conversation

@j-p-sequeira
Copy link
Copy Markdown

So, here it is. What we discussed here:
#451

I included the method to also allow using a simple org.w3c.dom.Document. You can remove it if you don't like ; )

As a note, the base URI will be set if the passed documents have it properly set. However, if also using default reading parameters, like reader.read(0, reader.getDefaultReadParam()); the URI that will be used is always the one set in the parameters, which will be null by default (ignoring the valid one in the document).

Hope this helps.
(I'm not used to GitHub, I hope I'm not doing anything wrong)

Extend input support of the SVGImageReader to also allow Document objects to be used as well as ImageInputStream objects.
Extend input support of the SVGImageReader to also allow Document objects to be used as well as ImageInputStream objects.
Extend input support of the SVGImageReader to also allow Document objects to be used as well as ImageInputStream objects.
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Feb 9, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant