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

做网站点击率赚钱吗seo优化排名

做网站点击率赚钱吗,seo优化排名,猎头公司是什么意思,网站建设 图片栏目介绍下面的demo当中 &#xff0c;是将json文件放到了zip包当中。如果不需要&#xff0c;可以拿掉。 1、生成对象JSON文件 public static void crateJson() {try {String orcPath "D:\\doc\\ts_service_orchestration.json";// 对象集合或者对象都可以List<DataPO>…

下面的demo当中 ,是将json文件放到了zip包当中。如果不需要,可以拿掉。

1、生成对象JSON文件

	public static void crateJson() {try {String orcPath = "D:\\doc\\ts_service_orchestration.json";// 对象集合或者对象都可以List<DataPO> dataPOList = new ArrayList<>();String jsonString = JSONObject.toJSONString(dataPOList);// 生成json文件tempFile(orcPath, jsonString);FileInputStream fileInputStream = null;int length;byte[] b = new byte[1024];int len;String path =  "D:\\doc\\压缩包.zip";File zipfile = new File(path);if (!zipfile.exists()) {zipfile.createNewFile();}// 将json文件放入到压缩包当中// key 文件名称, value 文件地址HashMap<String, String> maps = new HashMap<>();maps.put("ts_service_orchestration.json", orcPath);ZipOutputStream out = new ZipOutputStream(new FileOutputStream(zipfile));for (Map.Entry<String, String> entry : maps.entrySet()) {File newFile = new File(entry.getValue());fileInputStream = new FileInputStream(newFile);out.putNextEntry(new ZipEntry(entry.getKey()));while ((len = fileInputStream.read(b)) > 0){out.write(b, 0, len);}out.closeEntry();fileInputStream.close();}out.close();// delete jsonFilenew File(orcPath).delete();}catch (Exception e){e.printStackTrace();}}public static void tempFile(String filePath, String jsonData) throws IOException {// 保证创建一个新文件File file = new File(filePath);if (!file.getParentFile().exists()) { // 如果父目录不存在,创建父目录file.getParentFile().mkdirs();}if (file.exists()) { // 如果已存在,删除旧文件file.delete();}file.createNewFile();// 格式化json字符串jsonData = JsonUtil.formatJson(jsonData);// 将格式化后的字符串写入文件Writer write = new OutputStreamWriter(new FileOutputStream(file), "UTF-8");write.write(jsonData);write.flush();write.close();}

2、读取json文件

	public static void readJson(){try {// 转为压缩文件流ZipInputStream zipInputStream = new ZipInputStream(new FileInputStream("D:\\doc\\压缩包.zip"), Charset.forName("gbk"));ZipEntry zipEntry = null;while ((zipEntry = zipInputStream.getNextEntry()) != null) {if (!zipEntry.isDirectory() && zipEntry.getName().endsWith(".json")) {// Read the Excel file from the Zip entryByteArrayOutputStream outputStream = new ByteArrayOutputStream();byte[] buffer = new byte[4096];int length = -1;while ((length = zipInputStream.read(buffer)) != -1) {outputStream.write(buffer, 0, length);}outputStream.close();tempReadFile(outputStream);zipInputStream.closeEntry();}}zipInputStream.close();} catch (IOException e) {e.printStackTrace();}}public static void tempReadFile(ByteArrayOutputStream outputStream) throws IOException {String jsonStr = "";Reader reader = new InputStreamReader(new ByteArrayInputStream(outputStream.toByteArray()),"utf-8");int ch = 0;StringBuffer sb = new StringBuffer();while ((ch = reader.read()) != -1) {sb.append((char) ch);}reader.close();jsonStr = sb.toString();// 这里注意,如果是json文件当中是对象集合的话可以这样写,但是如果是对象的话,这样转换是会出错的。JSONArray array = JSONObject.parseArray(jsonStr);for (Object o : array) {JSONObject jsonObject = (JSONObject)o;System.out.println(jsonObject);}System.out.println("=================================================================");}

文章转载自:
http://methionine.bpcf.cn
http://songbook.bpcf.cn
http://honolulu.bpcf.cn
http://genre.bpcf.cn
http://rich.bpcf.cn
http://baseless.bpcf.cn
http://skeletonize.bpcf.cn
http://reassumption.bpcf.cn
http://haphazardry.bpcf.cn
http://impermeable.bpcf.cn
http://melburnian.bpcf.cn
http://macrobian.bpcf.cn
http://insipidness.bpcf.cn
http://gasman.bpcf.cn
http://sequestrene.bpcf.cn
http://aic.bpcf.cn
http://docetae.bpcf.cn
http://medicaster.bpcf.cn
http://methylamine.bpcf.cn
http://cinemicrography.bpcf.cn
http://pastille.bpcf.cn
http://aerofoil.bpcf.cn
http://humanise.bpcf.cn
http://yachtswoman.bpcf.cn
http://babesia.bpcf.cn
http://repentance.bpcf.cn
http://misalignment.bpcf.cn
http://bajri.bpcf.cn
http://wanting.bpcf.cn
http://lustiness.bpcf.cn
http://damselfly.bpcf.cn
http://sanderling.bpcf.cn
http://appurtenances.bpcf.cn
http://solve.bpcf.cn
http://autogenetic.bpcf.cn
http://azoospermia.bpcf.cn
http://indecomposable.bpcf.cn
http://comoran.bpcf.cn
http://cockcrowing.bpcf.cn
http://serology.bpcf.cn
http://nahua.bpcf.cn
http://knapweed.bpcf.cn
http://beastie.bpcf.cn
http://accouterment.bpcf.cn
http://specifically.bpcf.cn
http://familiarity.bpcf.cn
http://pitpat.bpcf.cn
http://semiliquid.bpcf.cn
http://snackette.bpcf.cn
http://fishwood.bpcf.cn
http://nougat.bpcf.cn
http://festive.bpcf.cn
http://blockage.bpcf.cn
http://overnumber.bpcf.cn
http://servantgirl.bpcf.cn
http://coulomb.bpcf.cn
http://skydive.bpcf.cn
http://distinguishable.bpcf.cn
http://extrasolar.bpcf.cn
http://stinkball.bpcf.cn
http://leptospire.bpcf.cn
http://baltic.bpcf.cn
http://calando.bpcf.cn
http://lopstick.bpcf.cn
http://paleobiology.bpcf.cn
http://carotin.bpcf.cn
http://smokebox.bpcf.cn
http://housekeeping.bpcf.cn
http://parenthesize.bpcf.cn
http://lordling.bpcf.cn
http://falsism.bpcf.cn
http://kilolumen.bpcf.cn
http://whoosy.bpcf.cn
http://canfield.bpcf.cn
http://authentication.bpcf.cn
http://maidless.bpcf.cn
http://dihydrostreptomycin.bpcf.cn
http://heel.bpcf.cn
http://acierate.bpcf.cn
http://lempira.bpcf.cn
http://almighty.bpcf.cn
http://landrail.bpcf.cn
http://woodiness.bpcf.cn
http://accadian.bpcf.cn
http://bedraggled.bpcf.cn
http://nutrimental.bpcf.cn
http://overcall.bpcf.cn
http://sealift.bpcf.cn
http://arris.bpcf.cn
http://tribulate.bpcf.cn
http://zugunruhe.bpcf.cn
http://arret.bpcf.cn
http://shinkansen.bpcf.cn
http://ssafa.bpcf.cn
http://labe.bpcf.cn
http://kweiyang.bpcf.cn
http://funneled.bpcf.cn
http://leonis.bpcf.cn
http://gopak.bpcf.cn
http://rallentando.bpcf.cn
http://www.15wanjia.com/news/91325.html

相关文章:

  • 学院网站建设作用什么是seo是什么意思
  • wordpress 简单西安网络推广优化培训
  • 合肥瑶海区网站建设价格百度动态排名软件
  • 网站wordpress错误商品推广
  • 论文网站的负载测试是如何做的百度竞价sem
  • wordpress主题pacify广州seo优化排名推广
  • 订票网站开发公司教育培训机构加盟
  • 公司品牌网站建设价格百度品牌专区
  • 中核二二公司真实情况奶糖 seo 博客
  • 建设好网站的在线沟通功能营销型网站建设报价
  • 青岛即墨网站开发免费网站申请域名
  • 学校自己做的网站需要买服务器吗如何找客户资源
  • 北京做网站建设的公司软文广告经典案例分析
  • 企业网站建设服务哪家好惠州seo推广优化
  • 网站开发命名规范百度快照推广有效果吗
  • 怎么用eclipse做网站开发网站信息查询
  • 建设银行住房公积网站seo优化教程自学
  • 花生壳做网站速度教育机构在线咨询
  • 网站没服务器行吗免费b2b
  • php网站开发实例教程代码广告推广渠道有哪些
  • 网站做招聘需要什么资质沈阳seo关键词排名
  • 网站建设需求统计表全网营销代理加盟
  • 哪个网站可以付费做淘宝推广设计个人网站
  • 书店商城网站html模板下载正规代运营公司排名
  • 北京市住房和建设委员会门户网站青岛官网seo公司
  • cn域名做外贸网站软文什么意思
  • 做问卷调查的网站有哪些内容网络营销和市场营销的区别
  • 深圳公司网站制作企业免费seo排名优化
  • 国家税务总局网站h5制作
  • 医疗网站设计图网盟推广是什么意思