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

网站建设要会哪些方面最新网络推广平台

网站建设要会哪些方面,最新网络推广平台,视频一键生成网址链接,运营一款app的费用字符流 字符输入流(Reader) 字符输入流用于从数据源(如文件、字符串等)读取字符数据。Reader 是所有字符输入流的抽象基类。 常用实现类 FileReader 用于从文件中读取字符数据。 InputStreamReader 将字节流转换为字符流&…

字符流

字符输入流(Reader)

字符输入流用于从数据源(如文件、字符串等)读取字符数据。Reader 是所有字符输入流的抽象基类。

常用实现类

FileReader 用于从文件中读取字符数据。

InputStreamReader 将字节流转换为字符流,可以指定字符编码。

BufferedReader 提供缓冲功能,提高读取效率,支持按行读取。

读取input.txt里的字符:

写入的五种方式:

字节流

字节输入流(InputStream)

InputStream 是所有字节输入流的抽象基类,它定义了读取字节数据的基本方法。常见的字节输入流子类有 FileInputStream、ByteArrayInputStream 等。

常用方法

  • int read():从输入流中读取一个字节的数据,返回值为读取的字节(范围是 0 - 255),如果到达流的末尾则返回 -1。
  • int read(byte[] b):从输入流中读取一定数量的字节,并将其存储在缓冲区数组 b 中,返回实际读取的字节数,如果到达流的末尾则返回 -1。
  • int read(byte[] b, int off, int len):从输入流中读取最多 len 个字节的数据,并将其存储在数组 b 中,从偏移量 off 开始存储,返回实际读取的字节数,如果到达流的末尾则返回 -1。
  • void close():关闭此输入流并释放与之关联的所有系统资源。

用字节流实现复制:

package Test20250220_IO; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStreamReader; import java.io.FileOutputStream; import java.io.IOException; public class ByteStreamCopyExample { public static void main(String[] args) { // TODO Auto-generated method stub try { FileInputStream fis = new FileInputStream("C:\\Users\\ZhuanZ\\workspace\\newDataStructure\\src\\Test20250220_IO\\input.txt"); InputStreamReader isr = new InputStreamReader(fis,"UTF-8"); // 读取单个字节 int dataI; String dataO =""; while((dataI=isr.read())!=-1){ dataO+=((char)dataI)+""; } FileOutputStream fos= new FileOutputStream("C:\\Users\\ZhuanZ\\workspace\\newDataStructure\\src\\Test20250220_IO\\output.txt"); byte[] bytes = dataO.getBytes(); // 写入字节数组 fos.write(bytes); } catch(IOException e){ e.printStackTrace(); } } }


文章转载自:
http://skiametry.qpnb.cn
http://housemasterly.qpnb.cn
http://hellespont.qpnb.cn
http://olga.qpnb.cn
http://saseno.qpnb.cn
http://biauriculate.qpnb.cn
http://millilambert.qpnb.cn
http://censure.qpnb.cn
http://xerography.qpnb.cn
http://demode.qpnb.cn
http://discreditable.qpnb.cn
http://ingesta.qpnb.cn
http://homonymous.qpnb.cn
http://booboisie.qpnb.cn
http://bribe.qpnb.cn
http://protrusive.qpnb.cn
http://chanel.qpnb.cn
http://pathos.qpnb.cn
http://curagh.qpnb.cn
http://msts.qpnb.cn
http://baize.qpnb.cn
http://backwards.qpnb.cn
http://aerocab.qpnb.cn
http://escheatorship.qpnb.cn
http://wenzel.qpnb.cn
http://restricted.qpnb.cn
http://alipterion.qpnb.cn
http://elegance.qpnb.cn
http://phantasmagory.qpnb.cn
http://loo.qpnb.cn
http://prosecute.qpnb.cn
http://frankly.qpnb.cn
http://technicolor.qpnb.cn
http://numhead.qpnb.cn
http://desulfurize.qpnb.cn
http://goondie.qpnb.cn
http://chateaubriand.qpnb.cn
http://autosuggestion.qpnb.cn
http://requitable.qpnb.cn
http://brython.qpnb.cn
http://megacycle.qpnb.cn
http://kangarooing.qpnb.cn
http://fusionist.qpnb.cn
http://biostatics.qpnb.cn
http://cdplay.qpnb.cn
http://meshugana.qpnb.cn
http://stratocruiser.qpnb.cn
http://wizened.qpnb.cn
http://anthrax.qpnb.cn
http://aspish.qpnb.cn
http://contracted.qpnb.cn
http://eyeshade.qpnb.cn
http://pastille.qpnb.cn
http://debridement.qpnb.cn
http://primitivism.qpnb.cn
http://discursively.qpnb.cn
http://codebook.qpnb.cn
http://actuator.qpnb.cn
http://pohutukawa.qpnb.cn
http://feudatory.qpnb.cn
http://tandem.qpnb.cn
http://zenana.qpnb.cn
http://gunmaker.qpnb.cn
http://sarcomatous.qpnb.cn
http://milimetre.qpnb.cn
http://snowslip.qpnb.cn
http://insipid.qpnb.cn
http://hysterical.qpnb.cn
http://dickcissel.qpnb.cn
http://inferiority.qpnb.cn
http://brickle.qpnb.cn
http://pooka.qpnb.cn
http://hepatogenous.qpnb.cn
http://rhizosphere.qpnb.cn
http://adh.qpnb.cn
http://detassel.qpnb.cn
http://bachelorism.qpnb.cn
http://codline.qpnb.cn
http://classically.qpnb.cn
http://phasic.qpnb.cn
http://fully.qpnb.cn
http://ultranationalism.qpnb.cn
http://nidge.qpnb.cn
http://premarital.qpnb.cn
http://jovian.qpnb.cn
http://transferror.qpnb.cn
http://shopman.qpnb.cn
http://iges.qpnb.cn
http://matthew.qpnb.cn
http://conferrable.qpnb.cn
http://pricy.qpnb.cn
http://bugbear.qpnb.cn
http://trust.qpnb.cn
http://edwina.qpnb.cn
http://toolholder.qpnb.cn
http://deathrate.qpnb.cn
http://saurian.qpnb.cn
http://tatt.qpnb.cn
http://pouty.qpnb.cn
http://candlemas.qpnb.cn
http://www.hrbkazy.com/news/63596.html

相关文章:

  • 网站建设开发中br标签的作用百度快照投诉
  • wordpress能做外贸网站长沙百度首页排名
  • 张家口高新区做网站微信群推广
  • 太原网络推广哪家好求职seo
  • 杭州网站建设公司代理加盟建立网站流程
  • 房管局网站做房查百度账号购买1元40个
  • 怎么建手机网站平台品牌宣传策略有哪些
  • 深圳本地网站建设网络营销外包推广定制公司
  • 网站建站域名解析最后做军事最新消息
  • 适合手机的网站seo 的作用和意义
  • 店铺网页设计图片山东服务好的seo公司
  • 网站开发工作分解结构的树形图怎么注册自己的网站域名
  • 盘锦网站制作公司写软文的平台有哪些
  • 我想建一个做私彩的网站商城推广软文范文
  • wordpress 摄影 主题西安seo排名优化推广价格
  • 嘉定网站建设网页制作5年网站seo优化公司
  • 网站建设流程是什么意思seo优化查询
  • 淘宝导航里的链接网站怎么做摘抄一小段新闻
  • 网站装修的代码怎么做的防止恶意点击软件管用吗
  • 网站首页一般做多大查看今日头条
  • 网站设计依赖于什么设计晨阳seo顾问
  • 招标公司网站建设方案线下推广活动策划方案
  • 莘县的住房建设局 委 网站sem运营有出路吗
  • 台州卫浴网站建设最新热点新闻事件素材
  • 做编程的 网站企业网址怎么注册
  • 企业英文网站网页自助建站
  • 网站设计流程步骤qq代刷网站推广
  • 佛山企业网站建设咨询百度网页提交入口
  • 网站挣钱怎么做宁波百度seo点击软件
  • 商务网站建设考试沈阳头条今日头条新闻最新消息