public ContextBuffer(int p, int i) { if (p<0)throw new IllegalArgumentException("invalid Buffer size"); pageSize = (1<<p); r = pageSize - 1; n = p; incSize = i; if (incSize < 0) throw new IllegalArgumentException("context buffer's incremental size must be greater than zero"); bufferArrayList = new ArrayList();
public ContextBuffer(int i) { super(); pageSize =1024; n = 10; r = pageSize - 1; incSize = i; if (incSize<0) throw new IllegalArgumentException(); bufferArrayList = new ArrayList();
public ContextBuffer(int p, int i) {	if (p<0)throw new IllegalArgumentException("invalid Buffer size");    pageSize = (1<<p);    r = pageSize - 1;    n = p;    incSize = i;    if (incSize < 0)        throw new IllegalArgumentException("context buffer's incremental size must be greater than zero");    bufferArrayList = new ArrayList();}