commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Niall Pemberton <niall.pember...@gmail.com>
Subject Re: [io] Moving to Java 6 for version 2.3
Date Sun, 01 Apr 2012 00:43:20 GMT
+1 to doing CharSet stuff.

Niall

On Thu, Mar 29, 2012 at 10:55 PM, Gary Gregory <garydgregory@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


Mime
View raw message