public static String getFileContent(String filePath, String encoding)
            throws IOException {
        BufferedReader buff = new BufferedReader(new InputStreamReader(
                new FileInputStream(filePath), encoding));
        String content = getContent(buff);
        buff.close();
        return content;
    }
public static String getFileContent(String filePath, String encoding)
            throws IOException {
        BufferedReader buff = new BufferedReader(new InputStreamReader(
                new FileInputStream(filePath), encoding));
        String content = getContent(buff);
        buff.close();
        return content;
    }
public static String getFileContent ( String filePath , String encoding ) throws IOException { BufferedReader buff = new BufferedReader ( new InputStreamReader ( new FileInputStream ( filePath ) , encoding ) ) ; String content = getContent ( buff ) ; buff . close ( ) ; return content ; }
按照指定编码得到文件内容

@param filePath 源文件路径
@param encoding 文件编
@return 文件内容
@throws IOException io exception
按照指定编码得到文件内容