Destructor, prints the buffer to stdout and resets the buffer. ~stream() (1) Destructor, prints the buffer to stdout and resets the buffer.