public JspTokenManager(Reader source) { tokenManager = new JspParserTokenManager(new JavaCharStream(source)); }
AdjustBuffSize(); if ((buffer[bufpos] = c = ReadByte()) == '\\') UpdateLineColumn(c); AdjustBuffSize(); if ((buffer[bufpos] = c = ReadByte()) != '\\') UpdateLineColumn(c); backup(backSlashCnt); return '\\'; backup(backSlashCnt-1); UpdateLineColumn(c); backSlashCnt++; while ((c = ReadByte()) == 'u') ++column; buffer[bufpos] = c = (char)(hexval(c) << 12 | hexval(ReadByte()) << 8 | hexval(ReadByte()) << 4 | hexval(ReadByte())); backup(backSlashCnt - 1);
protected void AdjustBuffSize() { if (available == bufsize) { if (tokenBegin > 2048) { bufpos = 0; available = tokenBegin; } else ExpandBuff(false); } else if (available > tokenBegin) available = bufsize; else if ((tokenBegin - available) < 2048) ExpandBuff(true); else available = tokenBegin; }
/** Reinitialise. */ public void ReInit(java.io.Reader dstream, int startline, int startcolumn) { ReInit(dstream, startline, startcolumn, 4096); }
protected char ReadByte() throws java.io.IOException { if (++nextCharInd >= maxNextCharInd) FillBuff(); return nextCharBuf[nextCharInd]; }
protected void FillBuff() throws java.io.IOException { int i; if (maxNextCharInd == 4096) maxNextCharInd = nextCharInd = 0; try { if ((i = inputStream.read(nextCharBuf, maxNextCharInd, 4096 - maxNextCharInd)) == -1) { inputStream.close(); throw new java.io.IOException(); } else maxNextCharInd += i; return; } catch(java.io.IOException e) { if (bufpos != 0) { --bufpos; backup(0); } else { bufline[bufpos] = line; bufcolumn[bufpos] = column; } throw e; } }
/** Reinitialise. */ public void ReInit(java.io.InputStream dstream, String encoding) throws java.io.UnsupportedEncodingException { ReInit(dstream, encoding, 1, 1, 4096); }
protected char ReadByte() throws java.io.IOException { if (++nextCharInd >= maxNextCharInd) FillBuff(); return nextCharBuf[nextCharInd]; }
protected void FillBuff() throws java.io.IOException { int i; if (maxNextCharInd == 4096) maxNextCharInd = nextCharInd = 0; try { if ((i = inputStream.read(nextCharBuf, maxNextCharInd, 4096 - maxNextCharInd)) == -1) { inputStream.close(); throw new java.io.IOException(); } else maxNextCharInd += i; return; } catch(java.io.IOException e) { if (bufpos != 0) { --bufpos; backup(0); } else { bufline[bufpos] = line; bufcolumn[bufpos] = column; } throw e; } }
public VfTokenManager(Reader source) { tokenManager = new VfParserTokenManager(new JavaCharStream(source)); }
AdjustBuffSize(); if ((buffer[bufpos] = c = ReadByte()) == '\\') UpdateLineColumn(c); AdjustBuffSize(); if ((buffer[bufpos] = c = ReadByte()) != '\\') UpdateLineColumn(c); backup(backSlashCnt); return '\\'; backup(backSlashCnt-1); UpdateLineColumn(c); backSlashCnt++; while ((c = ReadByte()) == 'u') ++column; buffer[bufpos] = c = (char)(hexval(c) << 12 | hexval(ReadByte()) << 8 | hexval(ReadByte()) << 4 | hexval(ReadByte())); backup(backSlashCnt - 1);
/** Reinitialise. */ public void ReInit(java.io.Reader dstream) { ReInit(dstream, 1, 1, 4096); } /** Constructor. */
protected void AdjustBuffSize() { if (available == bufsize) { if (tokenBegin > 2048) { bufpos = 0; available = tokenBegin; } else ExpandBuff(false); } else if (available > tokenBegin) available = bufsize; else if ((tokenBegin - available) < 2048) ExpandBuff(true); else available = tokenBegin; }
public JavaTokenManager(Reader source) { tokenManager = new JavaParserTokenManager(new JavaCharStream(source)); }
/** Reinitialise. */ public void ReInit(java.io.InputStream dstream, int startline, int startcolumn) { ReInit(dstream, startline, startcolumn, 4096); } /** Reinitialise. */
/** * Subclass should override this method to modify the JavaParser as needed. */ protected JavaParser createJavaParser(Reader source) throws ParseException { parser = new JavaParser(new JavaCharStream(source)); String suppressMarker = getParserOptions().getSuppressMarker(); if (suppressMarker != null) { parser.setSuppressMarker(suppressMarker); } return parser; }
/** Reinitialise. */ public void ReInit(java.io.InputStream dstream, String encoding, int startline, int startcolumn) throws java.io.UnsupportedEncodingException { ReInit(dstream, encoding, startline, startcolumn, 4096); } /** Reinitialise. */
public JavaTokenManager(Reader source) { tokenManager = new JavaParserTokenManager(new JavaCharStream(source)); }
/** Reinitialise. */ public void ReInit(java.io.InputStream dstream) { ReInit(dstream, 1, 1, 4096); }
public VfTokenManager(Reader source) { tokenManager = new VfParserTokenManager(new JavaCharStream(source)); }