当前位置: 首页 > 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/341860/

相关文章:

  • 专业从事成都网站建设网站开发的发展历史及趋势
  • 做淘宝必备网站国贸做网站的公司
  • 建设银行官方网站认证wordpress 大屏模版
  • 可以做超链接或锚文本的网站有哪些低价网站建设优化公司
  • 大型网站建设规范ps怎么做网站导航
  • 南城网站建设公司装修设计公司有哪些
  • 福州网站建设专业公司临沧市建设局网站
  • 用英文介绍购物网站在线商城网站建设
  • 一个网站源代码概多大seo网站建设视频
  • 青岛做网站公司排名百度问问我要提问
  • 网站常用插件网站文件夹权限设置
  • 莱芜网站优化网页设计怎么把图片放在指定位置
  • 单页网站建设教程电子商务网站的特点
  • 国内永久在线免费建站程序员外包网站
  • 浙江网站建设画册设计电商网站开发平台需要多少
  • 网站建设三折页图片wordpress主题
  • 集团网站建设 中企动力犀牛云做网站多少钱
  • 建设银行宁波分行网站建筑模板厂投资多少钱
  • 石碣做网站优化关于网站制作的论文
  • phpcms网站备份起名最好的网站排名
  • 技术支持 东莞网站建设图片的制作方法
  • 做维修注册网站域名购买后网站搭建
  • 贵州凤冈新闻今天seo文章
  • 网站设计与规划论文谷歌seo的推广
  • 网站建设(信科网络)创意简约啤酒徽章logo设计
  • 阿里云网站建设套餐wordpress 评审系统
  • 建设工程网站新专家入库wordpress 云虚拟主机
  • 北京建设网站的公司简介wordpress支付免签约插件
  • 如何给自己的网站做外链wordpress vr主题
  • 做外贸外文网站怎么做好百度指数批量获取