xjavadoc
public class JavaCharStream extends Object
Field Summary | |
---|---|
int | available |
protected int[] | bufcolumn |
protected char[] | buffer |
protected int[] | bufline |
int | bufpos Position in buffer. |
int | bufsize |
protected int | column |
protected int | inBuf |
protected Reader | inputStream |
protected int | line |
protected int | maxNextCharInd |
protected char[] | nextCharBuf |
protected int | nextCharInd |
protected boolean | prevCharIsCR |
protected boolean | prevCharIsLF |
static boolean | staticFlag Whether parser is static. |
protected int | tabSize |
int | tokenBegin |
Constructor Summary | |
---|---|
JavaCharStream(Reader dstream, int startline, int startcolumn, int buffersize) Constructor. | |
JavaCharStream(Reader dstream, int startline, int startcolumn) Constructor. | |
JavaCharStream(Reader dstream) Constructor. | |
JavaCharStream(InputStream dstream, String encoding, int startline, int startcolumn, int buffersize) Constructor. | |
JavaCharStream(InputStream dstream, int startline, int startcolumn, int buffersize) Constructor. | |
JavaCharStream(InputStream dstream, String encoding, int startline, int startcolumn) Constructor. | |
JavaCharStream(InputStream dstream, int startline, int startcolumn) Constructor. | |
JavaCharStream(InputStream dstream, String encoding) Constructor. | |
JavaCharStream(InputStream dstream) Constructor. |
Method Summary | |
---|---|
protected void | AdjustBuffSize() |
void | adjustBeginLineColumn(int newLine, int newCol)
Method to adjust line and column numbers for the start of a token. |
void | backup(int amount) Retreat. |
char | BeginToken() |
void | Done() Set buffers back to null when finished. |
protected void | ExpandBuff(boolean wrapAround) |
protected void | FillBuff() |
int | getBeginColumn() |
int | getBeginLine() |
int | getColumn() |
int | getEndColumn() Get end column. |
int | getEndLine() Get end line. |
int | getLine() |
protected int | getTabSize(int i) |
String | GetImage() |
char[] | GetSuffix(int len) |
static int | hexval(char c) |
char | readChar() Read a character. |
protected char | ReadByte() |
void | ReInit(Reader dstream, int startline, int startcolumn, int buffersize) Reinitialise. |
void | ReInit(Reader dstream, int startline, int startcolumn) Reinitialise. |
void | ReInit(Reader dstream) Reinitialise. |
void | ReInit(InputStream dstream, String encoding, int startline, int startcolumn, int buffersize) Reinitialise. |
void | ReInit(InputStream dstream, int startline, int startcolumn, int buffersize) Reinitialise. |
void | ReInit(InputStream dstream, String encoding, int startline, int startcolumn) Reinitialise. |
void | ReInit(InputStream dstream, int startline, int startcolumn) Reinitialise. |
void | ReInit(InputStream dstream, String encoding) Reinitialise. |
void | ReInit(InputStream dstream) Reinitialise. |
protected void | setTabSize(int i) |
protected void | UpdateLineColumn(char c) |
Returns: starting character for token.
Returns: column of token start
Returns: line number of token start
Deprecated:
See Also: JavaCharStream
Deprecated:
See Also: JavaCharStream
Returns: token image as String
Returns: suffix