java.lang.Object
com.ibm.jvm.dtfjview.tools.utils.FileUtils
-
Constructor Summary
-
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:
UnsupportedEncodingException
IOException
-
read
public static String[] read(File file, String charset) throws IOException, UnsupportedEncodingException 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:
UnsupportedEncodingException
IOException
-