> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Michiel Meeuwissen
> 
> No, an InputStream. A Reader is for chars. I just checked and 
> XMLBasicReader can accept an InputSource, which is even 
> better. So I don't understand what went wrong. Perhaps the 
> files themselves?

The XML-importer is not based on XMLBasicReader at all, because it is
developed to handle large files with optimal performance. Therefore it
relies on SAX-parsing, and does not parse the enitire file into memory,
like XMLBasicReader does.

As to why it does not take an InputStream instead of a Reader: I agree
this would be better. 

The fact that it currently takes a Reader, stems from the history of the
XML-importer (formerly known as TransactionHandler), particularly it's
SCAN-related heritage, and the fact that the present standardized Java
XML processing API's (JAXP) didn't exist yet when it was developed.

At present it makes sense to correct this, and it's easy.
Go ahead and do it, or report it in the bugtracker and I'll see to it
when I have the time.

Rob van Maris
Technical Consultant

Quantiq
xmedia & communication solutions

Koninginneweg 11-13
1217 KP Hilversum
 
T    +31 (0)356257211
M    +31 (0)651444006
E    [EMAIL PROTECTED]


Reply via email to