private Runnable dodownload() throws IOException {return new Runnable() {@Overridepublic void run() {String basepath = getResourceBasePath();List tfeepaids = getTfeepaidByTime();String timeName = getOneDayForDown();String KjDownResourcePath = "";String id = "";for (Tfeepaid tfeepaid : tfeepaids) {id = tfeepaid.getFcertid();KjDownResourcePath = new File(basepath, "down/" + id + "-" + timeName + ".txt").getAbsolutePath();ensureDirectory(KjDownResourcePath);StringBuffer sb = new StringBuffer();sb.append(tfeepaid.getFlastcommit());sb.append("\t");sb.append("\r\n");// TODO 其他数据据字段的设置20190314try {BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(KjDownResourcePath)));bw.write(sb.toString());bw.flush();bw.close();} catch (IOException e) {e.printStackTrace();} }
}
};
}
添加回答
举报
0/150
提交
取消