- java.lang.Object
-
- com.ibm.jvm.dtfjview.tools.utils.FileUtils
-
public class FileUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description FileUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String[]
read(File file)
To read a file.static String[]
read(File file, String charset)
To read a file.
-
-
-
Method Detail
-
read
public static String[] read(File file) 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
-
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
-
-