/** * The parameter-less constructor * */ public NodeRecorder() { vn = null; size = position = 0; fib = new FastIntBuffer(BUF_SZ_EXPO); }
/** * The parameter-less constructor * */ public NodeRecorder() { vn = null; size = position = count=0; fib = new FastIntBuffer(BUF_SZ_EXPO); }
/** * The parameter-less constructor * */ public NodeRecorder() { vn = null; size = position = 0; fib = new FastIntBuffer(BUF_SZ_EXPO); }
/** * * @param vn1 */ public NodeRecorder(VTDNav vn1) { bind(vn1); size = position = count = 0; fib = new FastIntBuffer(BUF_SZ_EXPO); }
/** * * @param vn1 */ public NodeRecorder(VTDNav vn1) { bind(vn1); size = position = count = 0; fib = new FastIntBuffer(BUF_SZ_EXPO); }
/** * * @param vn1 */ public NodeRecorder(VTDNav vn1) { bind(vn1); size = position = count = 0; fib = new FastIntBuffer(BUF_SZ_EXPO); }
public class helper{int index; int offset; int endOffset; int type;int depth;int tokenType;}; helper h1=null,h2=null;
/** * Select the name space nodes as defined in XPath * @param en */ protected void selectNameSpace(String en){ if (en == null) throw new IllegalArgumentException("namespace name can't be null"); iter_type = NAME_SPACE; ft = true; size = vn.getTokenCount(); name = en; if (!en.equals("*")) name2="xmlns:"+en; if (fib==null) fib = new FastIntBuffer(4); else fib.clear(); }
/** * Select the name space nodes as defined in XPath * * @param en */ protected void selectNameSpace(String en) { if (en == null) throw new IllegalArgumentException("namespace name can't be null"); iter_type = NAME_SPACE; ft = true; size = vn.getTokenCount(); name = en; if (!en.equals("*")) name2 = "xmlns:" + en; if (fib == null) fib = new FastIntBuffer(4); else fib.clear(); }
/** * Select the name space nodes as defined in XPath * @param en */ protected void selectNameSpace(String en){ if (en == null) throw new IllegalArgumentException("namespace name can't be null"); iter_type = NAME_SPACE; ft = true; size = vn.getTokenCount(); name = en; if (!en.equals("*")) name2="xmlns:"+en; if (fib==null) fib = new FastIntBuffer(4); else fib.clear(); }
/** * VTDGen constructor method. */ public VTDGen() { attr_name_array = new long[ATTR_NAME_ARRAY_SIZE]; prefixed_attr_name_array = new long[ATTR_NAME_ARRAY_SIZE]; prefix_URL_array = new int[ATTR_NAME_ARRAY_SIZE]; tag_stack = new long[TAG_STACK_SIZE]; //scratch_buffer = new int[10]; VTDDepth = 0; LcDepth = 5; br = false; e = new EOFException("permature EOF reached, XML document incomplete"); ws = false; nsBuffer1 = new FastIntBuffer(4); nsBuffer2 = new FastLongBuffer(4); nsBuffer3 = new FastLongBuffer(4); currentElementRecord = 0; singleByteEncoding = true; shallowDepth =false; helper=false; default_ns = false; //true xmlns='abc' isXML = false; //offset_adj = 1; } /**
/** * Test whether the input i is unique; * if not, insert into the hash table and return false * otherwise, return true */ public boolean isUnique(int i){ int temp = i & mask1; if (temp>maxDepth){ maxDepth = temp; } if (storage[temp]==null) { storage[temp]= new FastIntBuffer(pageSizeE); storage[temp].append(i); return true; } else{ int size = storage[temp].size; for (int j=0;j<size;j++){ if (i == storage[temp].intAt(j)){ return false; } } storage[temp].append(i); return true; } }
/** * Test whether the input i is unique; * if not, insert into the hash table and return false * otherwise, return true */ public boolean isUnique(int i){ int temp = i & mask1; if (temp>maxDepth){ maxDepth = temp; } if (storage[temp]==null) { storage[temp]= new FastIntBuffer(pageSizeE); storage[temp].append(i); return true; } else{ int size = storage[temp].size; for (int j=0;j<size;j++){ if (i == storage[temp].intAt(j)){ return false; } } storage[temp].append(i); return true; } }
/** * VTDGen constructor method. */ public VTDGen() { attr_name_array = new long[ATTR_NAME_ARRAY_SIZE]; prefixed_attr_name_array = new long[ATTR_NAME_ARRAY_SIZE]; prefix_URL_array = new int[ATTR_NAME_ARRAY_SIZE]; tag_stack = new long[TAG_STACK_SIZE]; //scratch_buffer = new int[10]; VTDDepth = 0; LcDepth = 3; br = false; e = new EOFException("permature EOF reached, XML document incomplete"); ws = false; nsBuffer1 = new FastIntBuffer(4); nsBuffer2 = new FastLongBuffer(4); nsBuffer3 = new FastLongBuffer(4); currentElementRecord = 0; singleByteEncoding = true; shallowDepth =true; helper=false; default_ns = false; //true xmlns='abc' isXML = false; //offset_adj = 1; } /**
/** * VTDGen constructor method. */ public VTDGen() { attr_name_array = new long[ATTR_NAME_ARRAY_SIZE]; prefixed_attr_name_array = new long[ATTR_NAME_ARRAY_SIZE]; prefix_URL_array = new int[ATTR_NAME_ARRAY_SIZE]; tag_stack = new long[TAG_STACK_SIZE]; //scratch_buffer = new int[10]; VTDDepth = 0; LcDepth = 3; br = false; e = new EOFException("permature EOF reached, XML document incomplete"); ws = false; nsBuffer1 = new FastIntBuffer(4); nsBuffer2 = new FastLongBuffer(4); nsBuffer3 = new FastLongBuffer(4); currentElementRecord = 0; singleByteEncoding = true; shallowDepth =true; helper=false; default_ns = false; //true xmlns='abc' isXML = false; //offset_adj = 1; } /**
ens = new FastIntBuffer(8);//page size 64
ens = new FastIntBuffer(8);//page size 64
ens = new FastIntBuffer(8);//page size 64
try { if (fib1 == null) fib1 = new FastIntBuffer(BUF_SZ_EXP); vn.push2(); stackSize = vn.contextStack2.size;
try { if (fib1 == null) fib1 = new FastIntBuffer(BUF_SZ_EXP); vn.push2(); stackSize = vn.contextStack2.size;