packagezf;importnet.sf.json.JSONArray;importnet.sf.json.JSONObject;import java.io.*;importjava.util.ArrayList;importjava.util.List;/*** Created by Yan on 2018/4/3.*/
public classExportPostManApiUtil {public staticString readToString(String fileName) {
String encoding= "UTF-8";
File file= newFile(fileName);
Long fileLength=file.length();byte[] fileContent = new byte[fileLength.intValue()];try{
FileInputStream in= newFileInputStream(file);
in.read(fileContent);
in.close();
}catch(FileNotFoundException e) {
e.printStackTrace();
}catch(IOException e) {
e.printStackTrace();
}try{return newString(fileContent, encoding);
}catch(UnsupportedEncodingException e) {
System.err.println("The OS does not support " +encoding);
e.printStackTrace();return nu