To remove the I/O checks in read/write methods. Billions of messages get passed through these classes so we don't want to be checking every single time to see if the stream is in the right mode. We get these checks automatically by using read/write specific objects and assume that the underlying file-like object does this check on its own.
To remove the I/O checks in read/write methods. Billions of messages get passed through these classes so we don't want to be checking every single time to see if the stream is in the right mode. We get these checks automatically by using read/write specific objects and assume that the underlying file-like object does this check on its own.