accept method

void accept()

Implementation

void accept() {
  _data.addAll(_buffer);
  _buffer.clear();
}