code: public void setBuffer (byte[] bytes, int offset, int count) {
  		if (bytes == null) throw new IllegalArgumentException("bytes cannot be null.");
  		buffer = bytes;
  		position = offset;
  		limit = offset + count;
  		capacity = bytes.length;
  		total = 0;
  		inputStream = null;
  	}
docs: Sets a new buffer to read from. The bytes are not copied, the old buffer is discarded and the new buffer used in its place.
  The position and total are reset. The {@link #setInputStream(InputStream) InputStream} is set to null.