commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steven Caswell" <stevencasw...@yahoo.com>
Subject [PATCH] IO FileUtils.java, IOTestCase.java
Date Fri, 22 Feb 2002 19:06:46 GMT
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
stevencaswell@yahoo.com

Mime
View raw message