Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DocumentFactory interface has no way to specify InputStream's encoding #72

Closed
carlosame opened this issue Dec 13, 2022 · 0 comments
Closed
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@carlosame
Copy link
Member

The DocumentFactory interface has the following factory method that creates a Document from an InputStream:

Document createDocument(String ns, String root, String uri, InputStream is) throws IOException;

But there is no variant of that method that allows an encoding to be specified. Although the equivalent method with a Reader could be used, the method above is almost encouraging usages that aren't i18n-safe.

@carlosame carlosame added the enhancement New feature or request label Dec 13, 2022
@carlosame carlosame added this to the 0.3 milestone Dec 13, 2022
@carlosame carlosame self-assigned this Dec 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant