Ling java-io

abstract class, InputStream

直接子类

  • FileInputStream 从文件中获取bytes
  • ObjectInputStream,
  • ByteArrayInputStreamm
  • StringBufferInputStream

java.io.InputStreamReader extends java.io.Reader

An InputStreamReader is a bridge from byte streams to character streams:

输出

BufferedWriter extends BufferedWriter

  • Writes text to a character-output stream, buffering characters so as to
    provide for the efficient writing of single characters, arrays, and strings.

    **write**(char[] cbuf, int off, int len)