On Sat, Mar 21, 2009 at 8:18 AM, Chris Hostetter
<[email protected]>wrote:

>
> : +      OutputStreamWriter writer = new OutputStreamWriter(os, "UTF-8");
>
> Minor nit, but using something like
>
>   public static final Charset UTF_8 = Charset.forName("UTF-8");
>      ...
>       OutputStreamWriter writer = new OutputStreamWriter(os, UTF_8);
>
> ...would be a little cleaner here.  no reason to pay the charset lookup
> cost everytime for a hardcoded constant.
>

Good point. I'll fix.

-- 
Regards,
Shalin Shekhar Mangar.

Reply via email to