Overview of Java IO streams

A, IO streams

  We know that there is permanently stored in the hard disk data, and the data in memory is only temporary, memory data can be stored in the hard disk, hard disk data can also be read into memory.

  We transfer such data, to a data flow can be seen, the method according to the flow, with reference to the memory, divided 

  Enter the input: the flow of memory is the input stream.

  Output output: effluent stream output memory.

  In Java I / O operation mainly refers to the use of java.io package contents, input, output operations.

  Input is also called the read data, the output also called write data. 

Second, the classification IO streams

  The flow of data is divided into: the input and output streams.

    •  Input stream : read the data stream from the other device to memory.
    •  Output stream : Write data stream from memory to other devices.

  Depending on the type of data is divided into: byte stream and character stream.

    •  Byte stream : bytes, reading and writing of stream data.
    •  Character stream : in characters, reading and writing of stream data.

Third, the description of the flow diagram IO

Fourth, the top-level parent class

V. Summary

 

Guess you like

Origin www.cnblogs.com/niujifei/p/11486863.html