Java I/O streams; what are the differences?

后端 未结 9 1260
死守一世寂寞
死守一世寂寞 2020-12-12 18:44

java.io has many different I/O streams, (FileInputStream, FileOutputStream, FileReader, FileWriter, BufferedStreams... etc.) and I am confused in determining th

9条回答
  •  暖寄归人
    2020-12-12 19:13

    This is a big topic! I would recommend that you begin by reading I/O Streams:

    An I/O Stream represents an input source or an output destination. A stream can represent many different kinds of sources and destinations, including disk files, devices, other programs, and memory arrays.

    Streams support many different kinds of data, including simple bytes, primitive data types, localized characters, and objects. Some streams simply pass on data; others manipulate and transform the data in useful ways.

提交回复
热议问题