css4j / echosvg

SVG implementation in the Java™ Language, fork of Apache Batik, supporting level 4 selectors and colors.
Apache License 2.0
39 stars 2 forks source link

Add encoding support to `TranscoderInput` #73

Closed carlosame closed 1 year ago

carlosame commented 1 year ago

TranscoderInput supports input via InputStream but does not allow to specify an encoding.

Add an encoding property to TranscoderInput so InputStream can be read properly (and input via URI has a default encoding to fall back). This implies adding a new method variant to DocumentFactory so documents can be parsed from a URI with a fallback encoding.

carlosame commented 1 year ago

Depends on #72.