Package com.github.javaparser
Class SimpleCharStream
- java.lang.Object
-
- com.github.javaparser.AbstractCharStream
-
- com.github.javaparser.SimpleCharStream
-
- All Implemented Interfaces:
CharStream
public class SimpleCharStream extends AbstractCharStream
An implementation of interface CharStream, where the stream is assumed to contain only ASCII characters (without unicode processing).
-
-
Field Summary
Fields Modifier and Type Field Description protected Provider
inputStream
-
Fields inherited from class com.github.javaparser.AbstractCharStream
available, bufcolumn, buffer, BUFFER_INCREASE, bufline, bufpos, bufsize, column, DEFAULT_BUF_SIZE, inBuf, line, maxNextCharInd, prevCharIsCR, prevCharIsLF, tokenBegin
-
-
Constructor Summary
Constructors Constructor Description SimpleCharStream(Provider dstream)
Constructor.SimpleCharStream(Provider dstream, int startline, int startcolumn)
Constructor.SimpleCharStream(Provider dstream, int startline, int startcolumn, int buffersize)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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[] aBuf, int nOfs, int nLen)
-
Methods inherited from class com.github.javaparser.AbstractCharStream
adjustBeginLineColumn, backup, beginToken, done, expandBuff, fillBuff, getBeginColumn, getBeginLine, getEndColumn, getEndLine, getImage, getSuffix, getTabSize, isTrackLineColumn, readChar, reInit, setTabSize, setTrackLineColumn, updateLineColumn
-
-
-
-
Field Detail
-
inputStream
protected Provider inputStream
-
-
Constructor Detail
-
SimpleCharStream
public SimpleCharStream(Provider dstream, int startline, int startcolumn, int buffersize)
Constructor.
-
SimpleCharStream
public SimpleCharStream(Provider dstream, int startline, int startcolumn)
Constructor.
-
SimpleCharStream
public SimpleCharStream(Provider dstream)
Constructor.
-
-
Method Detail
-
streamRead
protected int streamRead(char[] aBuf, int nOfs, int nLen) throws IOException
- Specified by:
streamRead
in classAbstractCharStream
- Throws:
IOException
-
streamClose
protected void streamClose() throws IOException
- Specified by:
streamClose
in classAbstractCharStream
- Throws:
IOException
-
reInit
public void reInit(Provider dstream, int startline, int startcolumn, int buffersize)
Reinitialise.
-
reInit
public void reInit(Provider dstream, int startline, int startcolumn)
Reinitialise.
-
reInit
public void reInit(Provider dstream)
Reinitialise.
-
-