class ByteBuffer {

    public int capacity() {
        // this is always 1 less than the actual byte[]
        return this.buffer.length-1;
    }

    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);

}