public class SimpleCharStream extends AbstractCharStream
available, buffer, bufpos, bufsize, DEFAULT_BUF_SIZE, inBuf, maxNextCharInd, 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 |
---|---|
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()
Close the underlying stream.
|
protected int |
streamRead(char[] aBuf,
int nOfs,
int nLen)
Read from the underlying stream.
|
adjustBeginLineColumn, backup, beginToken, done, expandBuff, fillBuff, getBeginColumn, getBeginLine, getBufSizeAfterExpansion, getColumn, getEndColumn, getEndLine, getImage, getLine, getSuffix, getTabSize, internalAdjustBuffSize, internalSetBufLineColumn, internalUpdateLineColumn, isTrackLineColumn, readChar, reInit, setTabSize, setTrackLineColumn
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[] aBuf, int nOfs, int nLen) throws IOException
AbstractCharStream
streamRead
in class AbstractCharStream
aBuf
- the buffer to be fillednOfs
- The offset into the buffer. 0-basednLen
- Number of chars to read.IOException
protected void streamClose() throws IOException
AbstractCharStream
streamClose
in class AbstractCharStream
IOException
- If closing fails.public 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.