You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by dl...@apache.org on 2002/06/12 21:50:40 UTC
cvs commit: jakarta-commons-sandbox/io/src/java/org/apache/commons/io FileUtils.java
dlr 2002/06/12 12:50:40
Modified: io/src/java/org/apache/commons/io FileUtils.java
Log:
Patch by Youngho Cho <yo...@nannet.co.kr> to clarify the type of
exception thrown by the fileRead(String) class method.
Revision Changes Path
1.6 +3 -2 jakarta-commons-sandbox/io/src/java/org/apache/commons/io/FileUtils.java
Index: FileUtils.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/io/src/java/org/apache/commons/io/FileUtils.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -u -r1.5 -r1.6
--- FileUtils.java 28 Jan 2002 10:03:11 -0000 1.5
+++ FileUtils.java 12 Jun 2002 19:50:40 -0000 1.6
@@ -59,6 +59,7 @@
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
+import java.io.IOException;
import java.util.Vector;
@@ -192,7 +193,7 @@
* @param fileName The name of the file to read.
* @return The file contents or null if read failed.
*/
- public static String fileRead(String fileName) throws Exception {
+ public static String fileRead(String fileName) throws IOException {
StringBuffer buf = new StringBuffer();
FileInputStream in = new FileInputStream(fileName);
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>