osdep.util
Class FileUtil

java.lang.Object
  extended by osdep.util.FileUtil

public class FileUtil
extends java.lang.Object

File utilities

Author:
SHZ Mar 14, 2008

Constructor Summary
FileUtil()
           
 
Method Summary
static java.lang.String fileContentToString(java.io.File listFile)
          Transfers the content of a file to a string
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileUtil

public FileUtil()
Method Detail

fileContentToString

public static java.lang.String fileContentToString(java.io.File listFile)
                                            throws java.io.FileNotFoundException,
                                                   java.io.IOException
Transfers the content of a file to a string

Parameters:
listFile -
Returns:
a string that is the content of the file
Throws:
java.io.FileNotFoundException
java.io.IOException