Because you may not want to clear the underlying thread. For example, you may only need to clear CodedOutputStreamit so that you can safely write some other data to the base OutputStreamand make sure that it ends after the data CodedOutputStream. In this case, you may not want to write data to a base file or socket, because it is more efficient for batch processing data.
source
share