docs: private void writeBufferedData() throws IOException {
          if (buffer.length() > 0) {
              out.write(formatMessage(buffer.toString()).getBytes());
              out.write('\n');
              buffer = new StringBuffer();
          }
      }