Someone pointed out the very obvious fact that the supportsSrcOfs() method
on the XML transcoder should really be on the transcoding service class,
since supporting this is either on or off for any particular transcoding
service installed. And also, if the client code needs to know if its
supported, it doesn't want to have to create a transcoder just to ask it
this question. So this was moved to the transcoding service class. I tested
ICU and Win32 transcoders. I made the trivial changes in IConv transcoder,
though I couldn't compile it (hopefully this time my 'by eye' changes will
be better than the last time I tried that :-)

Some discussion though... Right now IConv transcoder supports source
offsets. This has a very high cost in that transcoder because it's
basically doing it one char at a time in order to support this. This was
probably done because the folks who implemented it assumed it should be.
However, this source offset stuff was really implemented for a specific
customer who probably won't use this converter. If no one really wants this
source offset stuff when using the Iconv transcoder, we could vastly speed
up the peformance of it.

The ICU transcoder service supports the source offset stuff. This is partly
because this is the service that the customer in question will use, and
partly because it does it reasonably effficiently down in the core of ICU.

So anyway, speak up if this is of interest to you.

----------------------------------------
Dean Roddey
Software Weenie
IBM Center for Java Technology - Silicon Valley
[EMAIL PROTECTED]


Reply via email to