You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Niall Pemberton <ni...@gmail.com> on 2012/04/01 02:43:20 UTC
Re: [io] Moving to Java 6 for version 2.3
+1 to doing CharSet stuff.
Niall
On Thu, Mar 29, 2012 at 10:55 PM, Gary Gregory <ga...@gmail.com> wrote:
> Hi All:
>
> In order to add and use Charset APIs for encodings instead of encoding name
> Strings with various APIs like String(byte[], Charset) and so on, I plan on
> moving [io] to Java 6.
>
> I have (not committed) changes to the IOUtils class as a start: all APIs
> that can take a String encoding name (old school) have a sister API that
> takes a Charset object (new school).
>
> The refactoring I have is actually quite nice and gets rid of the odd noise
> in the implementation "if encoding is null then call API1 else call API2."
> Instead I convert the null to Charset.defaultCharset() in a new API (again,
> not committed yet until I set the POM to Java 6).
>
> Thank you,
> Gary
>
> --
> E-Mail: garydgregory@gmail.com | ggregory@apache.org
> JUnit in Action, 2nd Ed: <http://goog_1249600977>http://bit.ly/ECvg0
> Spring Batch in Action: <http://s.apache.org/HOq>http://bit.ly/bqpbCK
> Blog: http://garygregory.wordpress.com
> Home: http://garygregory.com/
> Tweet! http://twitter.com/GaryGregory
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org