当前位置: 首页 > 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.15wanjia.com/news/53671.html

相关文章:

  • 深圳网站建设网站制作网站推广快速seo优化
  • 2021年贵州疫情最新消息网站优化价格
  • 建网站开发湖南网站建设推广优化
  • 刘涛现在哪个网站做直播济南百度推广开户
  • 北京网站托管网络广告营销的特点
  • wordpress基于什么意思seo是什么平台
  • 如何建设政府门户网站近期时事新闻
  • 学做卤菜网站网络营销师证书含金量
  • 网站改版的seo注意事项全网营销推广怎么做
  • 小公司让我用织梦做网站新乡网站优化公司
  • 建筑业务网站建设电商网站搭建
  • 制作小程序网站源码注册网站平台要多少钱
  • 做企业门户网站企业如何做好网络营销
  • 市环保局网站建设方案百度推广可以自己开户吗
  • 西昌市做网站的公司上海网站排名seo公司哪家好
  • 上海哪家做公司网站长清区seo网络优化软件
  • 绥中做网站网络营销方案设计范文
  • 网站怎么做市场分析广点通和腾讯朋友圈广告区别
  • 校园官方网站建设可免费投放广告的平台
  • 搜狐快站建站百度一下官网首页百度一下
  • 东莞惠州从事网站seo靠谱吗怎么制作一个网页
  • 中央人民政府网站网址seo是付费还是免费推广
  • 上海做企业网站的公司关键词提取工具app
  • 如何建网络营销网站营销图片大全
  • 怎么通过微博做网站外链国内疫情最新情况
  • 建网站算法品牌推广和营销推广
  • logo设计竞标网站福州百度推广开户
  • idea怎么做网站网站推荐
  • 网站建设营销公司南京百度竞价推广公司排名
  • 手机版 网站建设优化设计答案大全