public class ExecuteConvertFileTest
{
public static void main (String[] args)
{
ExecuteConvertFile execute = new ExecuteConvertFileImpl();
// 目录
String inFilename = "c:/cn.txt";
String outFilename = "c:/cn.txt";
String encoding = "UTF-8";
try
{
execute.executeConvertFile(inFilename, outFilename, encoding);
}
catch (FileNotFoundException e)
{
e.printStackTrace();
}
catch (IOException e)
{
e.printStackTrace();
}
}
}
附件是需要引用的jar