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

Unmarshaller.unmarshal method that takes java.io.Reader #43

Closed
Tomas-Kraus opened this issue Oct 27, 2004 · 4 comments
Closed

Unmarshaller.unmarshal method that takes java.io.Reader #43

Tomas-Kraus opened this issue Oct 27, 2004 · 4 comments
Labels
bind framework component enhancement New feature or request Major Priority
Milestone

Comments

@Tomas-Kraus
Copy link
Contributor

XML can be read from java.io.Reader, and often people do that, yet the
javax.xml.bind.Unmarshaller interface doesn't have a version that takes
java.io.Reader.

This is a strange omission given that the Marshaller has a version of the
marshal method that takes java.io.Writer.

Currently the user can work around this problem by:

unmarshaller.unmarshal(new StreamSource(reader));

Environment

Operating System: All
Platform: All

Affected Versions

[2.0 v0.4]

@Tomas-Kraus
Copy link
Contributor Author

@glassfishrobot Commented
Reported by kohsuke

@Tomas-Kraus
Copy link
Contributor Author

@glassfishrobot Commented
This issue was imported from java.net JIRA JSR222-43

@Tomas-Kraus
Copy link
Contributor Author

@lukasj
Copy link
Contributor

lukasj commented Apr 2, 2020

Reader is there

@lukasj lukasj closed this as completed Apr 2, 2020
@lukasj lukasj added enhancement New feature or request and removed Type: Improvement labels May 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bind framework component enhancement New feature or request Major Priority
Projects
None yet
Development

No branches or pull requests

2 participants