> I think you guys are WAY overcomplicating things, or you just don't know > enough about the Java class libraries.
People were just pointing out that if the vint isn't String.length(), then one has to either buffer the entire string, or pre-scan it. It's a valid point, and CharsetEncoder doesn't change that. -Yonik Now hiring -- http://tinyurl.com/7m67g