Flow:
is divided into the input stream and the output stream, the input/output is relative to the computer memory, the data input to the memory is the input stream, the data from the memory output is the output stream.
The flow object is constructed with a data source associated with it.
The data source is divided into: source data source and target data source. The input stream is contacted by the source data source, and the output stream is associated with the destination data source.
Divided by Flow direction:
Input stream: InputStream and read
Output stream: OutputStream and write
The input stream and output stream are also divided into byte stream and character stream:
Divided by processing data units:
BYTE stream: InputStream and OutputStream. A byte stream is a 8-bit universal stream, and the base unit is bytes.
Character streams: Read and write. A character stream is a stream of 16-bit Unicode characters, and the base unit is a Unicode character. Suitable for handling strings and text.
I/O (input/output)---Byte stream and character stream