code: public byte get(int index) throws IllegalArgumentException, BufferSizeException {
          if ((index < 0) || (index  >= capacity())) {
              throw new IllegalArgumentException("The buffer index must be a value between 0 and " + capacity() + "!");
          }
          if (index >= size()) {
              throw new BufferSizeException("Index " + index + " is >= buffer size of " + size());
          }
          return this.buffer[(this.currentReadPosition + index) % this.buffer.length];
      }
docs: Gets the byte at the given index relative to the beginning the circular
  buffer. The index must be a value between 0 and the buffer capacity.
  @param index The index of the byte relative to the beginning the buffer
  (a value between 0 and the the current size).
  @return The byte at the given position relative to the beginning the buffer.
  @throws BufferSizeException If the index is >= size()