输入输出处理汇编.pptVIP

  • 3
  • 0
  • 约7.59千字
  • 约 58页
  • 2017-07-14 发布于湖北
  • 举报
输入/输出处理---流结束的判断 read() 返回-1。 readXXX() readInt()、readByte()、readLong()、readDouble()等; 产生EOFException。 readLine( ) 返回null。 输入/输出处理---字符流 java.io包中提供了专门用于字符流处理的类(以Reader和Writer为基础派生出的一系列类)。 Reader和Writer 这两个类是抽象类,只是提供了一系列用于字符流处理的接口,不能生成这两个类的实例,只能通过使用由它们派生出来的子类对象来处理字符流。 输入/输出处理---字符流 Reader类是处理所有字符流输入类的父类。 读取字符 public int read() throws IOException; public int read(char cbuf[]) throws IOException; public abstract int read(char cbuf[],int off,int len) throws IOException; 输入/输出处理---字符流 标记流 public boolean markSupported(); public void mark(int readAheadLimit) throws IOException; public void res

文档评论(0)

1亿VIP精品文档

相关文档