当前位置: 首页 > news >正文

刚上线的网站工厂弄个网站做外贸如何处理

刚上线的网站,工厂弄个网站做外贸如何处理,橱柜网站模板,网站雪花代码目录 文件画布 写入 (空文件Foutnew File(Parent,entry.getName());)FileOutputStream outnew FileOutputStream(Fout);BufferedOutputStream Boutnew BufferedOutputStream(out);其他流量基于基础包装文件--文件流---字节流 顺序pbf一般是形成后再压缩目…

目录 文件画布 写入 (空文件

Fout=new File(Parent,entry.getName());)

FileOutputStream out=new FileOutputStream(Fout);

BufferedOutputStream Bout=new BufferedOutputStream(out);

其他流量基于基础包装文件--文件流---字节流 顺序

pbf一般是形成后再压缩

目录:

(new File(Fout.getParent())).mkdirs(); 建好目录

流:

File Fout=new File(Parent,entry.getName());) 建好空白画布--具体文件名

FileOutputStream fileOutputStream = new FileOutputStream("C:\\Desktop\\consiste.xlsx");

FileOutputStream out=new FileOutputStream(Fout);

BufferedOutputStream Bout=new BufferedOutputStream(out); 字符流

或ByteArrayOutputStream o = new ByteArrayOutputStream(1024) 字节流

Bout.toByteArray()

其他流量基于基础包装文件--文件流---字节流 顺序

需要读写的流经过 GZIPInputStream GZIPOutputStream 对应构造函数包装就有了对应加压解压功能

File file = new File("C:\\Users\\h.yu\\Downloads\\pbf\\pbf\\1669358890231_1669358895639.z.pbf");

File fileo = new File("C:\\Users\\h3.yu\\Downloads\\pbf\\pbf");

byte[] output = null;

FileInputStream fis = new FileInputStream(file);

File Fout =new File(fileo,"3313.pbf");

FileOutputStream out=new FileOutputStream(Fout);

GzipUtils.decompress(fis,out);

import java.io.InputStream;

import java.io.OutputStream;

import java.util.zip.GZIPInputStream;

import java.util.zip.GZIPOutputStream;

public class GzipUtils {

/**

* 数据解压缩

*

* @param is

* @param os

* @throws Exception

*/

public static void decompress(InputStream is, OutputStream os)

throws Exception {

GZIPInputStream gis = new GZIPInputStream(is);

int count;

byte data[] = new byte[1024];

while ((count = gis.read(data, 0, 1024)) != -1) {

os.write(data, 0, count);

}

gis.close();

}

/**

* 数据压缩

*

* @param is

* @param os

* @throws Exception

*/

public static void compress(InputStream is, OutputStream os)

throws Exception {

GZIPOutputStream gos = new GZIPOutputStream(os);

int count;

byte data[] = new byte[1024];

while ((count = is.read(data, 0, 1024)) != -1) {

gos.write(data, 0, count);

}

gos.finish();

gos.flush();

gos.close();

}

}

http://www.yayakq.cn/news/499591/

相关文章:

  • 农村建设设计网站首页手机端app怎么开发
  • wordpress做中英文站做个人的网站怎么做
  • 网站建设自八度填写icp备案网站 接入信息
  • 重庆市设计公司网站wordpress优质主题
  • 怎么样通过做网站赚钱吗电子商务网站建设内涵
  • 企业做网站建设遇到的问题网站转化率低
  • 微软哪个软件做网站wordpress 内容页模板
  • 打字建站宝哪个网站可以学做咸菜
  • 千素网站建设办公空间设计ppt
  • 山东枣庄滕州网站建设html零基础教程
  • 惠城营销网站制作网站上线要准备什么
  • 博兴县建设局网站招聘58同城找工作
  • 建设网站杭州网站链接文字
  • 宿州大型网站建设公司查询注册公司信息在哪里查
  • 禹城网站建设公司网站更改
  • 设计师网站 知乎全球搜索引擎排名
  • 网站建设合同报价单 模板优秀个人博客网站
  • 网站权重查询工具app怎样下载安装
  • 小型网站制作吉林网站建站系统平台
  • 做网站需要备案几次西安软件培训
  • 群晖nas怎样做网站做视频网站要什么软件有哪些
  • 个人免费网站如何做淮南网站建设 飞沐
  • asp.net网站开发实战互动游戏制作软件
  • 红色网站建设桂林网站排名
  • 一站式互联网营销平台做电锯电音的网站
  • 服务器网站跳转怎么做html网页制作实验报告
  • 山东省工程建设管理协会网站上杭网页制作
  • 中铁建设集团集采网站中英文网站系统
  • 具体的网站建设wordpress相册程序
  • 西安做百度网站的三亚新闻发布会直播第十五场