public class SimpleCharStream extends AbstractCharStream
Modifier and Type | Field and Description |
---|---|
protected Provider |
inputStream |
available, bufcolumn, buffer, bufline, bufpos, bufsize, column, DEFAULT_BUF_SIZE, inBuf, line, maxNextCharInd, nextCharBuf, nextCharInd, prevCharIsCR, prevCharIsLF, tokenBegin
Constructor and Description |
---|
SimpleCharStream(Provider dstream)
Constructor.
|
SimpleCharStream(Provider dstream,
int startline,
int startcolumn)
Constructor.
|
SimpleCharStream(Provider dstream,
int startline,
int startcolumn,
int buffersize)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
fillBuff() |
char |
readChar()
Read a character.
|
void |
reInit(Provider dstream)
Reinitialise.
|
void |
reInit(Provider dstream,
int startline,
int startcolumn)
Reinitialise.
|
void |
reInit(Provider dstream,
int startline,
int startcolumn,
int buffersize)
Reinitialise.
|
protected void |
streamClose() |
protected int |
streamRead(char[] buffer,
int offset,
int len) |
adjustBeginLineColumn, backup, beginToken, done, expandBuff, getBeginColumn, getBeginLine, getEndColumn, getEndLine, getImage, getSuffix, getTabSize, isTrackLineColumn, reInit, setTabSize, setTrackLineColumn, updateLineColumn
protected Provider inputStream
public SimpleCharStream(Provider dstream, int startline, int startcolumn, int buffersize)
public SimpleCharStream(Provider dstream, int startline, int startcolumn)
public SimpleCharStream(Provider dstream)
protected int streamRead(char[] buffer, int offset, int len) throws IOException
streamRead
in class AbstractCharStream
IOException
protected void streamClose() throws IOException
streamClose
in class AbstractCharStream
IOException
protected void fillBuff() throws IOException
fillBuff
in class AbstractCharStream
IOException
public char readChar() throws IOException
readChar
in interface CharStream
readChar
in class AbstractCharStream
IOException
- on IO errorpublic void reInit(Provider dstream, int startline, int startcolumn, int buffersize)
public void reInit(Provider dstream, int startline, int startcolumn)
public void reInit(Provider dstream)
Copyright © 2007–2020. All rights reserved.