Class FileUtils
java.lang.Object
com.ibm.jvm.dtfjview.tools.utils.FileUtils
- 
Constructor Summary
Constructors - 
Method Summary
 
- 
Constructor Details
- 
FileUtils
public FileUtils() 
 - 
 - 
Method Details
- 
read
To read a file.- Parameters:
 cmdFile- The command file.charset- If not null, the charset is used to decode the strings in the file.- Returns:
 - content of the file.
 - Throws:
 UnsupportedEncodingExceptionIOException
 - 
read
public static String[] read(File file, String charset) throws IOException, UnsupportedEncodingException To read a file.- Parameters:
 charset- If not null, the charset is used to decode the strings in the file.cmdFile- The command file.- Returns:
 - content of the file.
 - Throws:
 UnsupportedEncodingExceptionIOException
 
 -