This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC: Character set converters...


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]