On Thu, 24 Aug 2006, Thomas Vandahl wrote:

[EMAIL PROTECTED] wrote:
-                InputSource is = new InputSource(br);
+                InputSource is = new InputSource(bufferedInputStream);

One questions about this, out of curiosity: I read from the API docs that the application *should* provide an encoding, if the InputSource is built from a byte stream. I couldn't find something about using the encoding in the file header. Where is that documented?

http://java.sun.com/j2se/1.5.0/docs/api/org/xml/sax/InputSource.html

I agree that in the 1.4 javadoc, the description is less clear, although I doubt that the procedure has changed.

   Thomas

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to