javaee / jaxb-spec

Formerly jsr222.java.net
Other
9 stars 16 forks source link

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

Open glassfishrobot opened 20 years ago

glassfishrobot commented 20 years ago

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]

glassfishrobot commented 20 years ago

Reported by kohsuke

glassfishrobot commented 7 years ago

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