public class JavaCharStream extends AbstractCharStream
| Modifier and Type | Field and Description |
|---|---|
protected Reader |
inputStream |
available, bufcolumn, buffer, bufline, bufpos, bufsize, column, DEFAULT_BUF_SIZE, inBuf, line, maxNextCharInd, nextCharBuf, nextCharInd, prevCharIsCR, prevCharIsLF, tokenBegin| Constructor and Description |
|---|
JavaCharStream(InputStream dstream,
Charset encoding)
Constructor.
|
JavaCharStream(InputStream dstream,
Charset encoding,
int startline,
int startcolumn)
Constructor.
|
JavaCharStream(InputStream dstream,
Charset encoding,
int startline,
int startcolumn,
int buffersize)
Constructor.
|
JavaCharStream(Reader dstream)
Constructor.
|
JavaCharStream(Reader dstream,
int startline,
int startcolumn)
Constructor.
|
JavaCharStream(Reader dstream,
int startline,
int startcolumn,
int buffersize)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
adjustBuffSize() |
char |
beginToken() |
protected void |
fillBuff() |
protected char |
readByte() |
char |
readChar()
Read a character.
|
void |
reInit(InputStream dstream,
Charset encoding)
Reinitialise.
|
void |
reInit(InputStream dstream,
Charset encoding,
int startline,
int startcolumn)
Reinitialise.
|
void |
reInit(InputStream dstream,
Charset encoding,
int startline,
int startcolumn,
int buffersize)
Reinitialise.
|
void |
reInit(Reader dstream)
Reinitialise.
|
void |
reInit(Reader dstream,
int startline,
int startcolumn)
Reinitialise.
|
void |
reInit(Reader dstream,
int startline,
int startcolumn,
int buffersize)
Reinitialise.
|
protected void |
streamClose() |
protected int |
streamRead(char[] buffer,
int offset,
int len) |
adjustBeginLineColumn, backup, done, expandBuff, getBeginColumn, getBeginLine, getEndColumn, getEndLine, getImage, getSuffix, getTabSize, isTrackLineColumn, reInit, setTabSize, setTrackLineColumn, updateLineColumnprotected Reader inputStream
public JavaCharStream(Reader dstream, int startline, int startcolumn, int buffersize)
public JavaCharStream(Reader dstream, int startline, int startcolumn)
public JavaCharStream(Reader dstream)
public JavaCharStream(InputStream dstream, Charset encoding, int startline, int startcolumn, int buffersize)
public JavaCharStream(InputStream dstream, Charset encoding, int startline, int startcolumn)
public JavaCharStream(InputStream dstream, Charset encoding)
protected int streamRead(char[] buffer,
int offset,
int len)
throws IOException
streamRead in class AbstractCharStreamIOExceptionprotected void streamClose()
throws IOException
streamClose in class AbstractCharStreamIOExceptionprotected void fillBuff()
throws IOException
fillBuff in class AbstractCharStreamIOExceptionprotected char readByte()
throws IOException
IOExceptionpublic char beginToken()
throws IOException
beginToken in interface CharStreambeginToken in class AbstractCharStreamIOExceptionprotected void adjustBuffSize()
public char readChar()
throws IOException
readChar in interface CharStreamreadChar in class AbstractCharStreamIOException - on IO errorpublic void reInit(Reader dstream)
public void reInit(Reader dstream, int startline, int startcolumn)
public void reInit(Reader dstream, int startline, int startcolumn, int buffersize)
public void reInit(InputStream dstream, Charset encoding)
public void reInit(InputStream dstream, Charset encoding, int startline, int startcolumn)
public void reInit(InputStream dstream, Charset encoding, int startline, int startcolumn, int buffersize)
Copyright © 2019. All rights reserved.