Recently, I saw the source code of a music player in android, and there was a paragraph in it that was displayed when reading the lyrics file lrc. Why is it so complicated?
The main meaning of the three codes is to encapsulate the file stream. The first sentence creates a byte stream of a file, the second sentence converts the byte stream into a character stream and reads it in the format of GB23 12, and the third sentence converts the character stream into a packed stream so that it can read the file stream line by line. I don't know if I made this clear, and I don't know how much you can understand. I believe you can read more about file streaming operations in java.