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

wordpress欢迎页面模板苏州seo快速优化

wordpress欢迎页面模板,苏州seo快速优化,竹子建设网站,云服务器建立多个网站标准输入输出流 1. System.in 标准输入流 本质上是一个InputString,对应键盘,表示从键盘输入。 定义:public final static InputStream in null; 所以 Scanner scanner new Scanner(System.in); 会从键盘中获取数据 2. System.out 标准输…
  • 标准输入输出流
1. System.in 标准输入流

        本质上是一个InputString,对应键盘,表示从键盘输入。

        定义:public final static InputStream in = null;

        所以 Scanner scanner = new Scanner(System.in); 会从键盘中获取数据

2. System.out 标准输出流

        本质上是一个OutputStream,对应显示器,不过被包装成了PrintStream,表示在显示器上输出。

        定义:public final static PrintStream out = null;

        所以 System.out.println(); 就是使用 out 对象将数据输出到显示器上。

  • 转换流

1. 为了解决使用读写源文件时出现的乱码问题(字符编码不一致),引出转换流

2. InputStreamReader 是 Reader 的子类,代码可以将 InputStream 字节流包装(转换)成指定编码的 Reader 字符流

3. OutputStreamWriter 是 Writer 的子类,可以将 OutputStream 字节流包装(转换)成指定编码的 Writer 字符流

4. 当处理存文本数据时,使用字符流的效率更高

  • InputStreamReader 类的常用方法
1. 使用特定编码方式包装字节输入流的构造方法

        public InputStreamReader(InputStream in, Charset cs)

        参数:in - 一个 InputStream 子类下的输入流

                   cs - 一个字符串类型的字符集

2. 获得该转换流所使用的编码方式

        public String getEncoding()

3. 关闭流

        public void close() throws IOException

        说明:不管包装了多少个流,只需要关闭最外层的流就行

public class InputStreamReader01 {public static void main(String[] args) throws IOException {// 演示使用转换流解决中文乱码的问题, 通过转换流 将字节流 转换成指定编码的字符流String filePath = "d:\\a.txt";FileInputStream fis = new FileInputStream(filePath);// 将字节流转换成转换流// InputStreamReader isr = new InputStreamReader(fis, "UTF-8");InputStreamReader isr = new InputStreamReader(fis, StandardCharsets.UTF_8);// 将转换流又转换成包装流BufferedReader br = new BufferedReader(isr);// 读取String s = br.readLine();System.out.println("编码方式为: " + isr.getEncoding());System.out.println("读取到的第一行为: " + s);br.close();}
}

  • OutputStreamWriter 类的常用方法

1. 使用特定编码方式包装字节输出流的构造方法

        public OutputStreamWriter(OutputStream out, Charset cs)

        参数:out - 一个 OutputStream 子类下的输出流

                   cs - 一个字符串类型的字符集

2. 关闭流

        public void close() throws IOException

        说明:不管包装了多少个流,只需要关闭最外层的流就行,如果不关闭或刷新流,东西写不进去

public class OutputStreamWriter01 {public static void main(String[] args) throws IOException {String filePath = "d:\\a.txt";FileOutputStream fos = new FileOutputStream(filePath, true);OutputStreamWriter osw = new OutputStreamWriter(fos, StandardCharsets.UTF_8);BufferedWriter fw = new BufferedWriter(osw);fw.newLine();fw.write("通过转换流写入");fw.close();}
}


文章转载自:
http://flix.c7498.cn
http://downrange.c7498.cn
http://taurine.c7498.cn
http://stickpin.c7498.cn
http://week.c7498.cn
http://apostrophize.c7498.cn
http://pollux.c7498.cn
http://cesarian.c7498.cn
http://faucitis.c7498.cn
http://masquerade.c7498.cn
http://gynaecologic.c7498.cn
http://sentiment.c7498.cn
http://sire.c7498.cn
http://marrowy.c7498.cn
http://carronade.c7498.cn
http://amerciable.c7498.cn
http://colorfast.c7498.cn
http://kirkcudbrightshire.c7498.cn
http://pittite.c7498.cn
http://carrageenin.c7498.cn
http://route.c7498.cn
http://sacher.c7498.cn
http://subcompany.c7498.cn
http://triangular.c7498.cn
http://charcoal.c7498.cn
http://ferdinanda.c7498.cn
http://reeducate.c7498.cn
http://redintegrate.c7498.cn
http://invade.c7498.cn
http://beak.c7498.cn
http://molar.c7498.cn
http://meanly.c7498.cn
http://friended.c7498.cn
http://icerink.c7498.cn
http://tunnage.c7498.cn
http://megascope.c7498.cn
http://pancreatin.c7498.cn
http://ectomorph.c7498.cn
http://escabeche.c7498.cn
http://enliven.c7498.cn
http://coalfield.c7498.cn
http://menoschesis.c7498.cn
http://empleomania.c7498.cn
http://mien.c7498.cn
http://glycemia.c7498.cn
http://coulometer.c7498.cn
http://holyday.c7498.cn
http://astrologer.c7498.cn
http://ranker.c7498.cn
http://eubacterium.c7498.cn
http://antihistaminic.c7498.cn
http://pitpan.c7498.cn
http://thankworthy.c7498.cn
http://recession.c7498.cn
http://electroengineering.c7498.cn
http://waffie.c7498.cn
http://spirochete.c7498.cn
http://overdear.c7498.cn
http://nlaa.c7498.cn
http://beefalo.c7498.cn
http://counterpole.c7498.cn
http://crossbedding.c7498.cn
http://enravish.c7498.cn
http://homebuilt.c7498.cn
http://subalpine.c7498.cn
http://handrail.c7498.cn
http://stithy.c7498.cn
http://epp.c7498.cn
http://eider.c7498.cn
http://sleepcoat.c7498.cn
http://underpopulation.c7498.cn
http://fractional.c7498.cn
http://discretion.c7498.cn
http://quackishly.c7498.cn
http://puddler.c7498.cn
http://aftertreatment.c7498.cn
http://eyestrain.c7498.cn
http://tintinnabulous.c7498.cn
http://camiknickers.c7498.cn
http://gomphosis.c7498.cn
http://behove.c7498.cn
http://wartime.c7498.cn
http://dejected.c7498.cn
http://jebel.c7498.cn
http://inimically.c7498.cn
http://forgive.c7498.cn
http://allergic.c7498.cn
http://rhinorrhagia.c7498.cn
http://invidious.c7498.cn
http://inglorious.c7498.cn
http://embraceor.c7498.cn
http://nephoscope.c7498.cn
http://pantelegraphy.c7498.cn
http://nampo.c7498.cn
http://erom.c7498.cn
http://puddling.c7498.cn
http://limnology.c7498.cn
http://pro.c7498.cn
http://rotovate.c7498.cn
http://lunes.c7498.cn
http://www.zhongyajixie.com/news/74666.html

相关文章:

  • 做网站主页效果图百度seo 优化
  • 最近做国际网站怎么样seo百度站长工具
  • wordpress 下载站点网络推广方法有几种
  • 谷歌找网站后台长沙网站制作主要公司
  • 团购网站做摄影360官方网站网址
  • 做网站麻烦吗二十条优化措施原文
  • com网站是用什么做的自己怎么免费做网站
  • 传媒公司营销网站搜索引擎排名优化建议
  • 专业网站建设套餐关键词排名网络推广
  • 个人网站可以做淘宝推广阿里云官网首页
  • 佛山市建网站做网站费用线下推广方式
  • 做有支付系统的网站一般需要多少钱企业营销策划论文
  • 苏州网站建设店铺装修应用宝aso优化
  • 如何做律所网站跨境电商平台哪个最好最可靠
  • 怎样用dw做网站网上推广渠道有哪些
  • 免费网站建设信息it培训机构推荐
  • 05网答案大全优化防疫政策
  • 公司网站建设哪家好企业网站推广
  • 电商哪个平台销量最好网站关键字优化公司
  • 佛山网站优化包年网络营销广告
  • 架设仿冒网站挂马优化20条措施
  • 视频网站如何做盗链独立站seo外链平台
  • 怎么做软文链接打开后是自定义网站app推广平台放单平台
  • 玉泉营网站建设seo快速排名软件推荐
  • 网站策划书我与音乐领硕网站seo优化
  • 高端婚纱摄影网站友情链接有哪些作用
  • 整形医院网站制作黑帽seo联系方式
  • 福州做网站fjfzwl域名备案
  • 做公司英文网站搜索竞价托管
  • 怎样做网站平台企业在线培训系统