commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject cvs commit: jakarta-commons-sandbox/io/src/java/org/apache/commons/io FileUtils.java
Date Wed, 12 Jun 2002 19:50:40 GMT
dlr         2002/06/12 12:50:40

  Modified:    io/src/java/org/apache/commons/io FileUtils.java
  Log:
  Patch by Youngho Cho <youngho@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:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message