Here are patches for FileUtils.java and IOTestCase.java Two patch files are attached.
I created the patch files using this command:
cvs diff -u Foo.java > Foo.patch
Changes in FileUtils:
modified fileRead to estimate the file content size and
prealloce the StringBuffer
modified fileRead to return StringBuffer instead of String
added overloaded fileWrite(String fileName, byte[] data) method
to accept and write
a byte array
added fileCopy(String sourceFileName, String targetFileName
boolean overwrite)
to create copy of source file
added fileCopy(File sourceFile, File targetFile, boolean
overwrite)
to create a copy of source file
Changes in IOTestCase:
added tests for all changes to FileUtils
I executed the tests and everything passed.
Here are patches for FileUtils.java and IOTestCase.java
Two patch files are attached.
I created the patch files using this command:
cvs diff -u Foo.java > Foo.patch
Changes in FileUtils:
modified fileRead to estimate the file content size and
prealloce the StringBuffer
modified fileRead to return StringBuffer instead of String
added overloaded fileWrite(String fileName, byte[] data) method
to accept and write
a byte array
added fileCopy(String sourceFileName, String targetFileName
boolean overwrite)
to create copy of source file
added fileCopy(File sourceFile, File targetFile, boolean
overwrite)
to create a copy of source file
Changes in IOTestCase:
added tests for all changes to FileUtils
I executed the tests and everything passed.
Steven Caswell
[EMAIL PROTECTED]
FileUtils.patch
Description: Binary data
IOTestCase.patch
Description: Binary data
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
