This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: RFC: Character set converters...
- From: Tom Tromey <tromey at redhat dot com>
- To: David Daney <ddaney at avtrex dot com>
- Cc: java at gcc dot gnu dot org
- Date: 13 Aug 2004 09:42:27 -0600
- Subject: Re: RFC: Character set converters...
- References: <411BDF34.7070500@avtrex.com>
- Reply-to: tromey at redhat dot com
>>>>> "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