Jaxp 1.1 and InputStreams

Greetings.

I started using Jaxp 1.1 last week. I noticed that the functions DocumentBuilder.parse() only accept java.io.InputStream. Can someone explain why java.io.InputStream has been used instead of java.io.Reader? I thought that we should move to java.io.Reader gradually. I have to use a java.io.StringBufferInputStream which is deprecated because of the interface supported by Jaxp 1.1. If I could, I would prefer to pass a java.io.StringReader instance to the functions instead.

Sincerely,

Hans Deragon

[556 byte] By [deragon] at [2007-9-26 2:19:50]
# 1
You can also use a java.io.File or an org.xml.sax.InputSource. The good thing about the InputSource is that you can use an InputStream or Reader in it's constructor.
ken_robinson at 2007-6-29 9:22:50 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...