Sets the data which contains the key store.

@param data the byte array that contains the key store
777338
public void setData(byte[] data) {
        byte[] copy = new byte[data.length];
        System.arraycopy(data, 0, copy, 0, data.length);
        this.data = copy;
    }
316672
public final void bytes(Class sourceClass, byte[] data)
    {
        if (data == null)
            bytes(null, sourceClass, data, 0, 0);
        else
            bytes(null, sourceClass, data, 0, data.length);
    }
838184
public void setData(byte[] data, boolean append) {
	lastModified = System.currentTimeMillis();

	// set data
	if (append) {
	    if (this.data != null && data != null) {
		byte[] newData = new byte[this.data.length + data.length];
		int i = 0;
		for (; i < this.data.length; i++) {
		    newData[i] = this.data[i];
		}
		for (; i < this.data.length + data.length; i++) {
		    newData[i] = data[i - this.data.length];
		}
		this.data = newData;
	    }
	    else if (data != null) {
		this.data = data;
	    }
	}
	else {
	    this.data = data;
	}

	// set type
	if (this.data != null) this.type = TYPE_FILE;

    }
741106
public function setDataFromArray(array $data)
    {
        foreach ($data as $key => $value) {
            $method = 'set' . ucfirst($key);
            if (method_exists($this, $method)) {
                $this->$method($value);
            }
        }
    }
567535
public void writeData(String data) {
        _buffer.append("<![CDATA[");
        _buffer.append( data);
        _buffer.append( "]]>");
    }
1022938
public void put(int data)
    {
        // If the buffer is small.
        if (mBuffer.capacity() < (mLength + 1))
        {
            expandBuffer(mLength + ADDITIONAL_BUFFER_SIZE);
        }

        mBuffer.put((byte)data);
        ++mLength;
    }
581469
public void setKey(String key) {

        m_key = key;
        if (LOG.isDebugEnabled()) {
            LOG.debug(Messages.get().getBundle().key(Messages.LOG_SET_KEY_1, key));
        }
    }
482798
public void put(T key, Object value) {
        data.put(key, ensureValueCorrectness(key, value));
    }
1207837
public void setData(final InputStream in) throws IOException {
		final byte[] bytes = JKIOUtil.readStream(in);
		setData(bytes);
	}
557767
public void setValue(FieldContainer container, byte[] data)
   {
      if (data != null)
      {
         container.set(m_type, ((MPPUtility.getInt(data, m_offset) & m_mask) == 0) ? m_zeroValue : m_nonZeroValue);
      }
   }
939941
@Override
  public void set(Object data, Class<?>... typeSpecs) {
    this.reset();
    this.mDefaultTypeSpecs = typeSpecs;
    this.add(data, typeSpecs);
  }
192748
public void put(byte[] data) throws APIException {
        HttpResponse response = client.put(getUrl(), new ByteArrayEntity(data, ContentType.APPLICATION_OCTET_STREAM));
        HttpClientHelpers.throwIfNotOk(response);
    }
372810
public void setData(@Nullable List<C> data) {
        Preconditions.checkState(mGroupBasicAdapter != null, "Must call bindView() first");
        MVHelper mvHelper = (MVHelper) mServices.get(MVHelper.class);
        if (mvHelper != null)
            mvHelper.reset();
        this.mGroupBasicAdapter.setData(data);
    }
1299650
public final void setDatas(@NonNull Iterable<? extends Data<?>> datas) {
        checkNotNull(datas, "datas");
        mDatas.clear();

        for (Data<?> data : datas) {
            mDatas.add(data);
            // Add entry for each new data instance in our registration map.
            if (!mRegistered.containsKey(data)) {
                mRegistered.put(data, false);
            }
        }

        // Remove and unregister any entries in our registration map that aren't in the new set.
        Iterator<Map.Entry<Data<?>, Boolean>> it = mRegistered.entrySet().iterator();
        while (it.hasNext()) {
            Map.Entry<Data<?>, Boolean> entry = it.next();
            Data<?> data = entry.getKey();
            Boolean registered = entry.getValue();
            if (!mDatas.contains(data) && registered) {
                data.unregisterDataObserver(mDataObserver);
                data.unregisterLoadingObserver(mLoadingObserver);
                data.unregisterErrorObserver(mErrorObserver);
                it.remove();
            }
        }

        updateRegistration();
    }
916383
@Override
	public void setData(final byte[] data, final int offset)
	{
		if (offset < 0 || offset > data.length)
			throw new KNXIllegalArgumentException("illegal offset " + offset);
		toDPT(data, offset);
	}
1174545
public <T> void set(String key, T value) {
        data.put(key, value);
    }
1061384
public void setData(java.util.Collection<Datum> data) {
        if (data == null) {
            this.data = null;
            return;
        }

        this.data = new java.util.ArrayList<Datum>(data);
    }