I. Update IO stream due to temperature (I) and update io stream
IO stream for better understanding (1)
Accumulate and share
Glossary:
Stream
A stream is a continuous input or input by a program.Byte sequence.
Byte stream
Byte streams are composed of bytes and are mainly used to process binary data. More powerful, byte streams can process any data (binary, text, images, audio and video)
What is upstream stream and its source?
In actual application, a lot of data is text. Therefore, the concept of the bytes stream is proposed based on the byte stream. It is processed by the encode (encoding table) of the Java Virtual Machine, that is, to convert character sets.
When converting bytes to bytes streams, it is actually converted from byte [] to String. public String (byte bytes [], String charsetName) has a key parameter character set encoding, we usually omit it, so the system uses the default encoding table of the operating system.
In short, bytes stream = byte stream + encoding table
IO stream 4 abstract base classes
Byte stream:
Ghost stream:
Importantly, in the four abstract base classes, the names of the base classes are used as suffixes. For example, FileInputStream can be seen as a byte input stream at a glance.