Writes the specified byte to this stream. If the byte is a newline and automatic flushing is enabled then the flush method will be invoked.
每次read()的时候,write()将数据写到缓冲区,然后等到有换行符出现的时候,一起flush()