code: public void sendData() throws IOException {
          if (_writer != null) {
              _writer.write(_buffer.toString());
              _writer.flush();
              _buffer = new StringBuffer();
          }
      }
docs: Send data and reinitializes buffer.