public int getChar() throws EOFExceptionHuge, ParseExceptionHuge, EncodingExceptionHuge { int a; if (offset >= endOffset) throw new EOFExceptionHuge("permature EOF reached, XML document incomplete"); a= xb.byteAt(offset++); if (a<0) throw new ParseExceptionHuge( "ASCII encoding error: invalid ASCII Char"); return a&0x7f; } public boolean skipChar(int ch)
public int getChar() throws EOFExceptionHuge, ParseExceptionHuge, EncodingExceptionHuge { if (offset >= endOffset) throw new EOFExceptionHuge("permature EOF reached, XML document incomplete"); return xb.byteAt(offset++) & 0xff; } public boolean skipChar(int ch)
/** * * @param vn1 */ public NodeRecorderHuge(VTDNavHuge vn1) { bind(vn1); size = position = count = 0; fib = new FastIntBuffer(BUF_SZ_EXPO); }
public int getChar() throws EOFExceptionHuge, ParseExceptionHuge, EncodingExceptionHuge { if (offset >= endOffset) throw new EOFExceptionHuge("permature EOF reached, XML document incomplete"); int temp = xb.byteAt(offset); //int a = 0, c = 0, d = 0, val = 0; if (temp >= 0) { offset++; return temp; } return handleUTF8(temp); } private int handleUTF8(int temp) throws EncodingExceptionHuge, ParseExceptionHuge{
private long getChar4OtherEncoding(long offset) throws NavExceptionHuge{ if (encoding <= FORMAT_WIN_1258){ int temp = decode(offset); if (temp == '\r') { if (XMLDoc.byteAt(offset + 1) == '\n') { return '\n'|(2L<<32); } else { return '\n'|(1L<<32); } } return temp|(1L<<32); } throw new NavExceptionHuge("Unknown Encoding"); } /**
public boolean skipChar(int ch) throws EOFExceptionHuge, EncodingExceptionHuge, ParseExceptionHuge { //int a = 0, c = 0, d = 0, val = 0; int temp = xb.byteAt(offset); if (temp >= 0) if (ch == temp) { offset++; return true; } else { return false; } return skipUTF8(temp, ch); } private boolean skipUTF8(int temp, int ch) throws EncodingExceptionHuge, ParseExceptionHuge{
/** * BookMarkHuge constructor with an instance of vn * as input * @param vn */ public BookMarkHuge(VTDNavHuge vn){ bind(vn); recordCursorPosition(vn); }
private int getStringVal(VTDNavHuge vn,int i){ int i1,t = vn.getTokenType(i); if (t == VTDNavHuge.TOKEN_STARTING_TAG){ i1 = vn.getText(); return i1; } else if (t == VTDNavHuge.TOKEN_ATTR_NAME || t == VTDNavHuge.TOKEN_ATTR_NS) return i+1; else return i; }
public boolean skipChar(int ch) throws ParseExceptionHuge, EOFExceptionHuge, EncodingExceptionHuge { if (ch == xb.byteAt(offset)) { offset++; return true; } else { return false; } }
/** * Record cursor position of the VTDNavHuge object as embedded in the * bookmark * * @return * */ public boolean recordCursorPosition(){ return recordCursorPosition(vn1); }
/** * VTDGenHuge constructor method. */ public VTDGenHuge() { attr_name_array = new long[ATTR_NAME_ARRAY_SIZE]; tag_stack = new long[TAG_STACK_SIZE]; //scratch_buffer = new int[10]; VTDDepth = 0; r = new UTF8Reader(); br = false; } /**
public int getChar() throws EOFExceptionHuge, ParseExceptionHuge, EncodingExceptionHuge { int a; if (offset >= endOffset) throw new EOFExceptionHuge("permature EOF reached, XML document incomplete"); a= xb.byteAt(offset++); if (a<0) throw new ParseExceptionHuge( "ASCII encoding error: invalid ASCII Char"); return a&0x7f; } public boolean skipChar(int ch)
public int getChar() throws EOFExceptionHuge, ParseExceptionHuge, EncodingExceptionHuge { if (offset >= endOffset) throw new EOFExceptionHuge("permature EOF reached, XML document incomplete"); int temp = xb.byteAt(offset); //int a = 0, c = 0, d = 0, val = 0; if (temp >= 0) { offset++; return temp; } return handleUTF8(temp); } private int handleUTF8(int temp) throws EncodingExceptionHuge, ParseExceptionHuge{
public int getChar() throws EOFExceptionHuge, ParseExceptionHuge, EncodingExceptionHuge { if (offset >= endOffset) throw new EOFExceptionHuge("permature EOF reached, XML document incomplete"); return xb.byteAt(offset++) & 0xff; } public boolean skipChar(int ch)
/** * * @param vn1 */ public NodeRecorderHuge(VTDNavHuge vn1) { bind(vn1); size = position = count = 0; fib = new FastIntBuffer(BUF_SZ_EXPO); }
public boolean skipChar(int ch) throws EOFExceptionHuge, ParseExceptionHuge, EncodingExceptionHuge { if (ch == xb.byteAt(offset)) { offset++; return true; } else { return false; } } }
public int getChar() throws EOFExceptionHuge, ParseExceptionHuge, EncodingExceptionHuge { int a; if (offset >= endOffset) throw new EOFExceptionHuge("permature EOF reached, XML document incomplete"); a= xb.byteAt(offset++); if (a<0) throw new ParseExceptionHuge( "ASCII encoding error: invalid ASCII Char"); return a&0x7f; } public boolean skipChar(int ch)
public int getChar() throws EOFExceptionHuge, ParseExceptionHuge, EncodingExceptionHuge { if (offset >= endOffset) throw new EOFExceptionHuge("permature EOF reached, XML document incomplete"); int temp = xb.byteAt(offset); //int a = 0, c = 0, d = 0, val = 0; if (temp >= 0) { offset++; return temp; } return handleUTF8(temp); } private int handleUTF8(int temp) throws EncodingExceptionHuge, ParseExceptionHuge{
public int getChar() throws EOFExceptionHuge, ParseExceptionHuge, EncodingExceptionHuge { if (offset >= endOffset) throw new EOFExceptionHuge("permature EOF reached, XML document incomplete"); return xb.byteAt(offset++) & 0xff; } public boolean skipChar(int ch)
/** * * @param vn1 */ public NodeRecorderHuge(VTDNavHuge vn1) { bind(vn1); size = position = count = 0; fib = new FastIntBuffer(BUF_SZ_EXPO); }