RFC: Character set converters...
Tom Tromey
tromey@redhat.com
Fri Aug 13 18:43:00 GMT 2004
>>>>> "David" == David Daney <ddaney@avtrex.com> writes:
David> This works, but I was thinking that perhaps a better way would
David> be to add a general purpose adapter into
David> gnu.gcj.convert.UnicodeToBytes so that it could use the
David> java.nio.charset converters. Thus eliminating duplicated code.
David> Does this make any sense?
Our plan for a long time was to rewrite all the character set
converters in terms of java.nio. That, we believed, would let us
solve this divergence from Classpath in a nice way, as well as fix a
couple little problems we've found in the current converter API (I
think there is a PR or two on this topic).
Since then, Bryce has said that he thinks the nio API is too
heavyweight. So, things are a bit undecided.
I haven't looked at the nio stuff; but from an abstract perspective it
would be better if we could have just one set of conversion classes.
I think what we need is some kind of quantification of the impact of
moving to the nio interfaces.
Tom
More information about the Java
mailing list