class ByteBuffer {

    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];
    }

    public  ByteBuffer();
    public  ByteBuffer(int capacity);
    public  ByteBuffer(byte[] bytes);
    public  ByteBuffer(byte[] bytes, int capacity);
    public  ByteBuffer(byte[] bytes, int offset, int length);
    public  ByteBuffer(byte[] bytes, int offset, int length, int capacity);
    public  ByteBuffer(String string0);
    public  ByteBuffer(String string0, int capacity);

}