public void setDoc(byte[] ba) {
public void setDoc(byte[] ba, int os, int len) {
	public void setDoc(byte[] ba) {		int a;		increment = 1;		depth = -1;		BOM_detected = false;		must_utf_8 = false;		ch = ch_temp = 0;		XMLDoc = ba;		temp_offset = 0;		docOffset = offset = 0;		docLen = ba.length;		endOffset = docLen;		if (docLen <= 1024) {			//a = 1024; //set the floor			a = 10;		} else if (docLen <= 1024 * 16 * 4) {			//a = 2048;			a = 11;		} else if (docLen <= 1024 * 256) {			//a = 1024 * 4;			a = 12;		} else {			//a = 1 << 15;			a = 15;		}		//VTDBuffer = new FastLongBuffer(a);		//l1Buffer = new FastLongBuffer(128);		//l2Buffer = new FastLongBuffer(512);		//l3Buffer = new FastIntBuffer(2048);		VTDBuffer = new FastLongBuffer(a, ba.length >> (a + 1));		l1Buffer = new FastLongBuffer(7);		l2Buffer = new FastLongBuffer(9);		l3Buffer = new FastIntBuffer(11);		vtdSize = l1Size = l2Size = l3Size = 0;	}