code: public void setBuffer(final String buffer) {
          this.buffer = Arrays.copyOf(buffer.getBytes(), Math.max(buffer.length() + 1, MIN_BUFFER_LEN));
          this.bufferLength = this.buffer.length;
      }
docs: Sets the value of the data buffer.
  
  @param buffer the buffer value