commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 39272] - FileUtils needs a toString that takes a filename and returns its contents as a string
Date Wed, 12 Apr 2006 17:34:34 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39272>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39272





------- Additional Comments From bayard@apache.org  2006-04-12 18:34 -------
Currently FileUtils has readFileToString(File, String).

So your suggestion is two-fold:

1) Provide a String overload for the File part.
2) Provide a default encoding part.

We intentionally do not do 1). It would bloat our API and is a bad habit; new File() is a
good thing to do 
so we make the user do it.

I'm less sure on the decision (see javadoc for readFileToString) to not have a default encoding
option. 
Anyone know the reasons for that off the top of their head?


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message