byte[] responseData = prev.getResponseData().;

private String filePath = "F:/test.txt";

BufferedOutputStream bos = null;

FileOutputStream fos = null;

File file = null;try

{

File file = new File(filePath);

fos = new FileOutputStream(file, true);// 不添加参数true,以非追加的方式添加内容

bos = new BufferedOutputStream(fos);

bos.write(responseData);

}catch(

Exception e)

{

e.printStackTrace();

}finally

{

if (bos != null) {

try {

bos.close();

} catch (IOException e1) {

e1.printStackTrace();

}

}

if (fos != null) {

try {

fos.close();

} catch (IOException e1) {

e1.printStackTrace();

}

}

}

    byte[] responseData = prev.getResponseData().;
private String filePath = "F:/test.txt";
BufferedOutputStream bos = null;
FileOutputStream fos = null;
File file = null;try
{
File file = new File(filePath);
fos = new FileOutputStream(file, true);// 不添加参数true,以非追加的方式添加内容
bos = new BufferedOutputStream(fos);
bos.write(responseData);
}catch(
Exception e)
{
e.printStackTrace();
}finally
{
if (bos != null) {
try {
bos.close();
} catch (IOException e1) {
e1.printStackTrace();
}
}
if (fos != null) {
try {
fos.close();
} catch (IOException e1) {
e1.printStackTrace();
}
}
}

最新文章

  1. MySQL的基本知识 -- 命令
  2. 激活windows10 LTSB 2016
  3. Java 9终于要包含Jigsaw项目了
  4. Linux编程之驱动
  5. 【转】JVM内存模型
  6. linux-3重置root密码
  7. POJ3169 Layout
  8. Get与POST的理解
  9. Linux中FTP服务器的搭建
  10. 卸载oracle 11g数据库
  11. Arcgis瓦片--js客户端加载
  12. Golang 类型转换,断言和显式强制转换
  13. python中sqlite问题和坑
  14. Victoria的舞会2——图的连通性及连通分量
  15. 经纬度编码方法推荐-plus code简介
  16. JavaScript实现字符串逆置的几种方法
  17. C# winform 支持html5的 控件
  18. 案例情景--在一次Oracle 数据库导出时 EXP-00008;ORA-00904:EXP-00000: oracle不同版本导入导出规则
  19. (转)eclipse 报错 :The method list(String, Object[]) is ambiguous for the type BaseHibernateDao
  20. jquery click事件,多次执行

热门文章

  1. TensorFlow(十七):训练自己的图片分类模型
  2. express中的中间件(middleware)、自定义中间件、静态文件中间件、路由中间件
  3. chrome的内存限制
  4. matplot 绘制折线图
  5. FOI 冬令营 Day6
  6. CF786E ALT
  7. js vue --- T Z 去掉 T Z 时间
  8. [java]三种自定义链表排序方式
  9. xss绕过姿势
  10. 微信小程序测试检查点