code: public void setBuffer(final String buffer) {
          initRandomBuffer();
          byteBufferAry = Arrays.copyOf(buffer.getBytes(), MAX_PACKETBUFFER_LENGTH);
      }
docs: Sets the value of the data buffer.
  
  @param buffer the buffer value