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写入字符数组的某一部分

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。