commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steven Caswell" <stevencasw...@yahoo.com>
Subject [IO] proposal to make the following changes to FileUtils
Date Tue, 19 Feb 2002 21:58:33 GMT
I propose making the following changes to FileUtils:

1. Change the fileRead method to estimate the size of the file content
and instantiate the StringBuffer with this size.
2. Change the return of fileRead to be StringBuffer.  IMHO this is a
little more flexible in that the caller can more easily manipulate a
StringBuffer, and if the caller wants it as a String, can easily invoke
toString().
3. Add an overloaded fileWrite method accepting the data to be written
as a byte array rather than a String.
4. Add a copyFile(String sourceFileName, String targetFileName) that
makes a copy of the source file into the destination.

These are all things I have in my own private common area and can easily
provide to commons-io


Steven Caswell
stevencaswell@yahoo.com
a.k.a Mungo Knotwise of Michel Delving
"One ring to rule them all, one ring to find them..."


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message