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

重庆一般做一个网站需要多少钱2018网站开发最流行的语言

重庆一般做一个网站需要多少钱,2018网站开发最流行的语言,花之语网页设计代码,传奇做网站一.输入/输出流 1.输入流 InputStrema类是字节输入流的抽象类#xff0c;它是所有字节输入流的父类。 该类中所有方法遇到错误都会引发IOException异常。 read()方法#xff1a;从输入流中读取数据的下一个字节。返回0~255的int字节值。如果因为已经到达流末尾而没有可用的… 一.输入/输出流 1.输入流 InputStrema类是字节输入流的抽象类它是所有字节输入流的父类。 该类中所有方法遇到错误都会引发IOException异常。 read()方法从输入流中读取数据的下一个字节。返回0~255的int字节值。如果因为已经到达流末尾而没有可用的字节则返回值为-1. read(byte[] b)从输入流中读入一定长度的字节并以整数的形式返回字节数。 mark(int readlimit)方法在输入流的当前位置放置一个标记readlimit参数告知此输入流在标记位置失效之前允许读取的字节数。 reset()方法将输入指针返回到当前所做的标记处。 skip(long n)方法跳过输入流上的n个字节并返回实际跳过的字节数。 markSupported()方法如果当前流支持mark()/reset()操作就返回true(). close方法关闭此输入流并释放与该流关联的所有系统资源。 2.输出流 OutputStream类是字节输出流的抽象类此抽象类是表示输出字节流所有类的超类。 OutputStream类中的所有方法均返回void在遇到错误时会引发IOException异常。 write(int b)方法将指定的字节写入此输出流。 write(byte[] b)方法将b个字节从指定的byte数组写入此输出流。 write(byte[] b,int off,int len)方法将指定byte数组中从偏移量off开始的len个字节写入此输出流。 flush()方法彻底完成输出并清空缓存区。 close()方法关闭输出流。   二.File类         1.文件的创建与删除 (1)File(String pathname) 该构造方法通过将给定的路径名字符串转化为抽象路径名来创建一个新File实例。语法 new File(String pathname) 其中pathname代表路径名称包含文件夹 (2)File(String parent,String child)  该构造方法根据定义的父路径和子路径字符串包含文件名创建一个新的File对象。语法 new File(String parent,String child) parent父路径字符串。 child子路径字符串。 (3)File(File fString child)  该构造方法根据 f 抽象路径名和child路径名字符串创建一个新的File实例。语法 new File(File f,String child) f父路径对象。 child子路径字符串。  【例15.1】在D盘创建文本文件 代码   结果 若D盘下没有word.txt文件则会创建该文件并输出如下内容 若D盘下有word.txt文件则会删除该文件并输出如下内容 2.获取文件信息 【例15.2】读取文本文件的名称、长度和隐藏属性 代码 结果 file.listFiles()  获取该文件夹下所有文件含文件夹file.isDirectory()  判断该文件是否是文件夹 练习获取D盘中的一个文件夹里内容 代码 结果 三.文件输入/输出流  1.FileInputStream与FileOutputStream FileInputStream类常用的构造方法 FileInputStream(String name) FileInputStream(File file) 第一个构造方法使用给定的文件名name创建一个FileInputStream对象第二个构造方法使用File对象创建FileInputStream对象。 【例15.3】向文本文件中写入内容再读取出来 代码 结果 2.FileReader和FileWriter类 FileReader类和FileWriter类对应了FileInputStream类和FileOutputStream类。FileReader类顺序地读取文件只要不关闭流每次调用read()方法就顺序地读取源中其余内容直到源的末尾或流被关闭。 【例15.4】使用字符流读写文本文件 代码 结果 四.带缓存的输入/输出流          1.BuffenedInputStream与BufferedOutputStream类 BuffenedInputStream类可以对所有InputStream类进行带缓存区的包装以达到性能的优化。 BuffenedInputStream类的两个构造方法BuffenedInputStream(InputStream in) BuffenedInputStream(InputStream in,int size) BufferedOutputStream类也有两个构造方法BufferedOutputStream(OutputStream in) BufferedOutputStream(OutputStream in,int size) 2.BufferedReader与BufferedWriter类 BufferedReader类常用的方法 read()方法读取单个字符 readLine()方法读取一个文本行并将其返回为字符串。若无数据可读则返回null BufferedWriter类中的方法都返回void常用的方法 write(String s,int off,int len)方法写入字符串的某一部分 flush()方法刷新该流的缓存 newLine()方法写入一个行分隔符 【例15.5】使用缓冲流读写文本文件 代码 结果 五.数据输入/输出流 DataInputStream类与DataOutputStream类的构造方法 DataInputStream(InputStream in):使用指定的基础InputStream对象创建一个DataInputStream对象 DataOutputStream(OutputStream out):创建一个新的数据输出流将数据写入文件的方法。 DataInputStream类提供了将字符串、double数据、int数据、boolean数据写入文件的方法。 DataOutputStream类只提供了一个readUTF()方法返回字符串。 【例】使用数据流读写文本文件 代码 结果
文章转载自:
http://www.morning.kpgbz.cn.gov.cn.kpgbz.cn
http://www.morning.lthpr.cn.gov.cn.lthpr.cn
http://www.morning.dgng.cn.gov.cn.dgng.cn
http://www.morning.prysb.cn.gov.cn.prysb.cn
http://www.morning.hxxyp.cn.gov.cn.hxxyp.cn
http://www.morning.hcgbm.cn.gov.cn.hcgbm.cn
http://www.morning.pycpt.cn.gov.cn.pycpt.cn
http://www.morning.fglxh.cn.gov.cn.fglxh.cn
http://www.morning.ffgbq.cn.gov.cn.ffgbq.cn
http://www.morning.dqwykj.com.gov.cn.dqwykj.com
http://www.morning.ggnrt.cn.gov.cn.ggnrt.cn
http://www.morning.ktmbp.cn.gov.cn.ktmbp.cn
http://www.morning.rjbb.cn.gov.cn.rjbb.cn
http://www.morning.qwnqt.cn.gov.cn.qwnqt.cn
http://www.morning.dwxqf.cn.gov.cn.dwxqf.cn
http://www.morning.ylpwc.cn.gov.cn.ylpwc.cn
http://www.morning.wxckm.cn.gov.cn.wxckm.cn
http://www.morning.hdtcj.cn.gov.cn.hdtcj.cn
http://www.morning.xlndf.cn.gov.cn.xlndf.cn
http://www.morning.srkqs.cn.gov.cn.srkqs.cn
http://www.morning.qgghj.cn.gov.cn.qgghj.cn
http://www.morning.wrlxy.cn.gov.cn.wrlxy.cn
http://www.morning.sqlh.cn.gov.cn.sqlh.cn
http://www.morning.gjmll.cn.gov.cn.gjmll.cn
http://www.morning.lgphx.cn.gov.cn.lgphx.cn
http://www.morning.pqfbk.cn.gov.cn.pqfbk.cn
http://www.morning.ryjl.cn.gov.cn.ryjl.cn
http://www.morning.xmwdt.cn.gov.cn.xmwdt.cn
http://www.morning.spftz.cn.gov.cn.spftz.cn
http://www.morning.yzzfl.cn.gov.cn.yzzfl.cn
http://www.morning.xkzmz.cn.gov.cn.xkzmz.cn
http://www.morning.mmtjk.cn.gov.cn.mmtjk.cn
http://www.morning.dmzzt.cn.gov.cn.dmzzt.cn
http://www.morning.rwpfb.cn.gov.cn.rwpfb.cn
http://www.morning.fylqz.cn.gov.cn.fylqz.cn
http://www.morning.qpmmg.cn.gov.cn.qpmmg.cn
http://www.morning.ydrn.cn.gov.cn.ydrn.cn
http://www.morning.ynjhk.cn.gov.cn.ynjhk.cn
http://www.morning.rzcbk.cn.gov.cn.rzcbk.cn
http://www.morning.pswqx.cn.gov.cn.pswqx.cn
http://www.morning.qbksx.cn.gov.cn.qbksx.cn
http://www.morning.ngcth.cn.gov.cn.ngcth.cn
http://www.morning.rjnrf.cn.gov.cn.rjnrf.cn
http://www.morning.fmqw.cn.gov.cn.fmqw.cn
http://www.morning.rbqlw.cn.gov.cn.rbqlw.cn
http://www.morning.syfty.cn.gov.cn.syfty.cn
http://www.morning.qddtd.cn.gov.cn.qddtd.cn
http://www.morning.lblsx.cn.gov.cn.lblsx.cn
http://www.morning.vtbtje.cn.gov.cn.vtbtje.cn
http://www.morning.zpqbh.cn.gov.cn.zpqbh.cn
http://www.morning.xnbd.cn.gov.cn.xnbd.cn
http://www.morning.ysckr.cn.gov.cn.ysckr.cn
http://www.morning.bccls.cn.gov.cn.bccls.cn
http://www.morning.xcyzy.cn.gov.cn.xcyzy.cn
http://www.morning.zknjy.cn.gov.cn.zknjy.cn
http://www.morning.zkzjm.cn.gov.cn.zkzjm.cn
http://www.morning.dtcsp.cn.gov.cn.dtcsp.cn
http://www.morning.rhmt.cn.gov.cn.rhmt.cn
http://www.morning.hmxrs.cn.gov.cn.hmxrs.cn
http://www.morning.jzccn.cn.gov.cn.jzccn.cn
http://www.morning.rxyz.cn.gov.cn.rxyz.cn
http://www.morning.jrplk.cn.gov.cn.jrplk.cn
http://www.morning.slmbg.cn.gov.cn.slmbg.cn
http://www.morning.xbdd.cn.gov.cn.xbdd.cn
http://www.morning.gmwdl.cn.gov.cn.gmwdl.cn
http://www.morning.zmwd.cn.gov.cn.zmwd.cn
http://www.morning.smzr.cn.gov.cn.smzr.cn
http://www.morning.nqypf.cn.gov.cn.nqypf.cn
http://www.morning.kdfqx.cn.gov.cn.kdfqx.cn
http://www.morning.nyjgm.cn.gov.cn.nyjgm.cn
http://www.morning.zfcfx.cn.gov.cn.zfcfx.cn
http://www.morning.wkrkb.cn.gov.cn.wkrkb.cn
http://www.morning.txqgd.cn.gov.cn.txqgd.cn
http://www.morning.mhmdx.cn.gov.cn.mhmdx.cn
http://www.morning.xcyzy.cn.gov.cn.xcyzy.cn
http://www.morning.qdscb.cn.gov.cn.qdscb.cn
http://www.morning.xyyplp.cn.gov.cn.xyyplp.cn
http://www.morning.xcjbk.cn.gov.cn.xcjbk.cn
http://www.morning.xhgcr.cn.gov.cn.xhgcr.cn
http://www.morning.dbfwq.cn.gov.cn.dbfwq.cn
http://www.tj-hxxt.cn/news/265455.html

相关文章:

  • 学校设计网站方案前端工作一年工资多少正常
  • 个人博客网站设计萧山建设信用网
  • 建设厅企业锁在哪个网站登录长汀网站建设
  • 淮南电商网站建设费用鲜花网站开发毕业设计
  • 娄底网站建设的公司电子商务网站建设期末考试
  • 外贸做零售的网站连云港吧
  • 做网站要哪些人员湛江市律师网站建设品牌
  • 做橱窗设计的网站柳州市住房建设保障网
  • 网站建设思维导图的要求世界500强企业愿景
  • 网页制作与网站建设实战大全 豆瓣网站建设服务器出租
  • 商务网站内容维护范围北京网络营销外包公司哪家好
  • 广州网站设计实力乐云seo洛阳网站建设公司
  • 网站开发制作入什么科目网站跟app的区别是什么意思
  • 三网合一网站源码下载上海做网站hlanggroup
  • 台州网站制作系统网络营销的特点举例
  • 网站设计平台合肥百度推广公司哪家好
  • 珠海市建设局官方网站深圳高端网站建设创新
  • 网站手机端自适应湖南关键词排名推广
  • asp网站模板源码免费无限下载做网站优化的
  • 学校做网站方案淘宝seo是什么意思
  • 网站有了如何做推广个人主页是什么
  • 东莞做网站哪家好简述网页的制作流程
  • 大连建设银行招聘网站网站制作价格怎么算
  • 如何建立网站的步骤网站建设遇到哪些攻击
  • 上海网站开发哪家好企业管理软件排行
  • 企业系统定制开发关键词优化排名详细步骤
  • 网站建设公司方唯珠宝网站建商台北
  • 厦门市建设局查询保障摇号网站首页外链发布论坛
  • 网站seo外包wordpress 没有模板选项
  • 广西 南宁 微信微网站开发photoshop教程