首页 > 其他 > 详细

AJPFX总结FileWriter类的write方法

时间:2019-05-14 13:26:38      阅读:159      评论:0      收藏:0      [点我收藏+]

FileWriter从类OutputStreamWriter继承的


1、public void write(int c)
          throws IOException写入单个字符。
          c - 指定要写入字符的ASCII。


2、public void write(char[] cbuf, int off, int len)
          throws IOException写入字符数组的某一部分


3、public void write(String str,  int off,  int len)
          throws IOException写入字符串的某一部分。

FileWriter从类Writer继承的


1、public void write(char[] cbuf)
          throws IOException写入字符数组。


2、public abstract void write(char[] cbuf,  int off, int len)
          throws IOException写入字符数组的某一部分

AJPFX总结FileWriter类的write方法

原文:https://www.cnblogs.com/AJPFX/p/10861649.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!