JavaIO_体系结构

InputStream

  • ByteArrayInputStream 读取字节数组
  • FileInputStream 读文件
  • FilterInputStream 装饰器父类
    • BufferedInputStream 设置缓冲区读取
    • DataInputStream 可以读取基本数据类型
    • LineNumberInputStream 已废弃
    • PushbackInputStream 可以“取消读取”
  • ObjectInputStream
  • PipedInputStream 多线程管道
  • SequenceInputStream 多个流串联
  • StringBufferInputStream 已废弃

OutputStream

  • ByteArrayOutputStream
  • FileOutputStream
  • FilterOutputStream
    • BufferedOutputStream
    • DataOutputStream
    • PrintStream
  • ObjectOutputStream
  • PipedOutputStream

Reader

  • BufferedReader
    • LineNumberReader
  • CharArrayReader
  • FilterReader
    • PushbackReader
  • InputStreamReader
    • FileReader
  • PipedReader
  • StringReader

Writer

  • BufferedWriter
  • CharArrayWriter
  • OutputStreamWriter
    • FileWriter
  • PipedReader
  • PrintWriter
  • StringWriter



你可能感兴趣的:(JavaIO)