~ubuntu-branches/ubuntu/vivid/commons-io/vivid

« back to all changes in this revision

Viewing changes to src/java/org/apache/commons/io/FileUtils.java

  • Committer: Bazaar Package Importer
  • Author(s): Varun Hiremath
  • Date: 2007-10-08 18:40:07 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20071008184007-mldy1l8uefdgmxjh
Tags: 1.3.2-2
debian/patches: Add 02_no_mkdir_in_homedir.dpatch to stop creating
.maven directory in user homedir (Closes: #445804)

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
 * @author Jim Harrington
75
75
 * @author Niall Pemberton
76
76
 * @author Sandy McArthur
77
 
 * @version $Id: FileUtils.java 504659 2007-02-07 19:37:06Z bayard $
 
77
 * @version $Id: FileUtils.java 507684 2007-02-14 20:38:25Z bayard $
78
78
 */
79
79
public class FileUtils {
80
80
 
973
973
     * @param file  the file to read, must not be <code>null</code>
974
974
     * @return the file contents, never <code>null</code>
975
975
     * @throws IOException in case of an I/O error
976
 
     * @since Commons IO 1.3
 
976
     * @since Commons IO 1.3.1
977
977
     */
978
978
    public static String readFileToString(File file) throws IOException {
979
979
        return readFileToString(file, null);