public static String read(InputStream is, String encoding) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(is, encoding));
        StringBuilder content = new StringBuilder();
        String data = null;
        while ((data = br.readLine()) != null) {
            content.append(data);
            content.append(Constants.LINE_SEPARATOR);
        }
        return content.toString();
    }
@author Robert HG (254963746@qq.com) on 3/6/15.
lts-core/src/main/java/com/github/ltsopensource/core/commons/file/FileUtils.java