ruper2/src/java/core/org/krysalis/ruper2/util/io FileUtils.java,1.2,1.3
| Newsgroups | gmane.comp.krysalis.metamorphosis.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper2/util/io
In directory sc8-pr-cvs1:/tmp/cvs-serv8689/src/java/core/org/krysalis/ruper2/util/io
Modified Files:
FileUtils.java
Log Message:
File fix (inside VRL) to see deletes actually occur.
Index: FileUtils.java
===================================================================
RCS file: /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper2/util/io/FileUtils.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** FileUtils.java 9 Oct 2003 21:14:57 -0000 1.2
--- FileUtils.java 13 Oct 2003 13:24:42 -0000 1.3
***************
*** 97,101 ****
}
! public static void transfer(File inputFile, File outputFile) throws IOException {
FileInputStream input = null;
--- 97,110 ----
}
! /**
! * Transfer all the data from one file to file.
! * Does NOT delete the output file on exception.
! *
! * @param inputFile
! * @param outputFile
! * @throws IOException
! */
! public static void transfer(File inputFile, File outputFile)
! throws IOException {
FileInputStream input = null;
***************
*** 110,118 ****
IOUtils.transfer(input, output);
}
! catch (Exception ie) {
IOUtils.close(output);
}
}
! catch (Exception ie) {
IOUtils.close(input);
}
--- 119,127 ----
IOUtils.transfer(input, output);
}
! finally {
IOUtils.close(output);
}
}
! finally {
IOUtils.close(input);
}
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php