• 2023-08-2320230622 java.io.FileOutputStream
    介绍java.io.FileOutputStreampublicclassFileOutputStreamextendsOutputStream提供附着在一个磁盘文件上的输出流API构造器FileOutputStream(Stringname)throwsFileNotFoundExceptionFileOutputStream(Stringname,booleanappend)FileOutputStream(Filefile
  • 2023-08-2320230622 java.io.DataOutputStream
    介绍java.io.DataOutputStreampublicclassDataOutputStreamextendsFilterOutputStreamimplementsDataOutput支持写出基本数据类型API构造器DataOutputStream(OutputStreamout)publicsize返回目前为止写入的字节数
  • 2023-08-2320230622 java.io.DataOutput
    介绍java.io.DataOutputpublicinterfaceDataOutput定义了用于以二进制格式写数组、字符、boolean值和字符串的方法API写字节writevoidwrite(intb)throwsIOException;voidwrite(byteb[])throwsIOException;voidwrite(byteb[],intoff,intlen)throws
  • 2023-08-2320230622 java.io.DataInputStream
    介绍java.io.DataInputStreampublicclassDataInputStreamextendsFilterInputStreamimplementsDataInput支持读取基本数据类型API构造器DataInputStream(InputStreamin)
  • 2023-08-2320230622 java.io.DataInput
    介绍java.io.DataInputpublicinterfaceDataInputAPI读取字节readFullyvoidreadFully(byteb[])throwsIOException;voidreadFully(byteb[],intoff,intlen)throwsIOException;从输入流读取并存储到缓冲器数组boff:偏移量,从b[off]开始使用数组len:
  • 2023-08-2320230622 java.io.BufferedOutputStream
    介绍java.io.BufferedOutputStreampublicclassBufferedOutputStreamextendsFilterOutputStreamwrite方法写入的字节先存入内部的bytebuf[],填满后再写入文件API构造器BufferedOutputStream(OutputStreamout)BufferedOutputStream(OutputStreamout,intsize)
  • 2023-08-2320230622 java.io.BufferedInputStream
    介绍java.io.BufferedInputStreampublicclassBufferedInputStreamextendsFilterInputStreamread方法读取字节时,先读取内部的缓冲区bytebuf[],当缓冲区读完后,从底层输入流再读入数据填充缓冲区API构造器BufferedInputStream(InputStreamin)BufferedInputStream(I