public class SimpleCharStream extends Object
Modifier and Type | Field and Description |
---|---|
protected int[] |
bufcolumn |
protected char[] |
buffer |
protected int[] |
bufline |
int |
bufpos
Position in buffer.
|
protected int |
column |
protected int |
inBuf |
protected Reader |
inputStream |
protected int |
line |
protected int |
maxNextCharInd |
protected boolean |
prevCharIsCR |
protected boolean |
prevCharIsLF |
protected int |
tabSize |
Constructor and Description |
---|
SimpleCharStream(InputStream dstream,
String encoding,
int startline,
int startcolumn) |
SimpleCharStream(InputStream dstream,
String encoding,
int startline,
int startcolumn,
int buffersize) |
SimpleCharStream(Reader dstream,
int startline,
int startcolumn,
int buffersize) |
Modifier and Type | Method and Description |
---|---|
void |
backup(int amount) |
char |
BeginToken() |
protected void |
ExpandBuff(boolean wrapAround) |
protected void |
FillBuff() |
int |
getBeginColumn()
Get token beginning column number
|
int |
getBeginLine()
Get token beginning line number
|
int |
getColumn()
Deprecated.
|
int |
getEndColumn()
Get token end column number
|
int |
getEndLine()
Get token end line number
|
String |
GetImage()
Get token literal value.
|
int |
getLine()
Deprecated.
|
int |
getTabSize() |
char |
readChar() |
void |
setTabSize(int i) |
protected void |
UpdateLineColumn(char c) |
public int bufpos
protected int[] bufline
protected int[] bufcolumn
protected int column
protected int line
protected boolean prevCharIsCR
protected boolean prevCharIsLF
protected Reader inputStream
protected char[] buffer
protected int maxNextCharInd
protected int inBuf
protected int tabSize
public SimpleCharStream(Reader dstream, int startline, int startcolumn, int buffersize)
public SimpleCharStream(InputStream dstream, String encoding, int startline, int startcolumn, int buffersize) throws UnsupportedEncodingException
UnsupportedEncodingException
public SimpleCharStream(InputStream dstream, String encoding, int startline, int startcolumn) throws UnsupportedEncodingException
UnsupportedEncodingException
public void setTabSize(int i)
public int getTabSize()
protected void ExpandBuff(boolean wrapAround)
protected void FillBuff() throws IOException
IOException
public char BeginToken() throws IOException
IOException
protected void UpdateLineColumn(char c)
public char readChar() throws IOException
IOException
@Deprecated public int getColumn()
@Deprecated public int getLine()
public int getEndColumn()
public int getEndLine()
public int getBeginColumn()
public int getBeginLine()
public void backup(int amount)
public String GetImage()