Add Charset sister APIs to method that take a String charset name.
------------------------------------------------------------------
Key: IO-318
URL: https://issues.apache.org/jira/browse/IO-318
Project: Commons IO
Issue Type: New Feature
Environment: Apache Maven 3.0.4 (r1232337; 2012-01-17 03:44:56-0500)
Maven home: C:\Java\apache-maven-3.0.4\bin\..
Java version: 1.7.0_03, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.7.0_03\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
Reporter: Gary D. Gregory
Fix For: 2.3
Add Charset sister APIs to method that take a String charset name (aka
encoding).
For example: foo(..., String charsetName) -> foo(..., Charset charset).
Refactor such that we do not have code duplication of the algorithms.
Known issue: Source compatibility.
Now there are APIs that change only by the last type, String vs. Charset, you
will get a compile error if you pass null to the API because the target method
will be ambiguous, so you have to type cast to one type or the other.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira