Package jmri.jmris.simpleserver.parser
Class SimpleCharStream
java.lang.Object
jmri.jmris.simpleserver.parser.SimpleCharStream
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) intprotected int[]protected char[]protected int[]int(package private) intprotected intprotected intprotected Readerprotected intprotected intprotected booleanprotected booleanstatic final booleanprotected int(package private) intprotected boolean -
Constructor Summary
ConstructorsConstructorDescriptionSimpleCharStream(InputStream dstream) SimpleCharStream(InputStream dstream, int startline, int startcolumn) SimpleCharStream(InputStream dstream, int startline, int startcolumn, int buffersize) SimpleCharStream(InputStream dstream, String encoding) SimpleCharStream(InputStream dstream, String encoding, int startline, int startcolumn) SimpleCharStream(InputStream dstream, String encoding, int startline, int startcolumn, int buffersize) SimpleCharStream(Reader dstream) SimpleCharStream(Reader dstream, int startline, int startcolumn) SimpleCharStream(Reader dstream, int startline, int startcolumn, int buffersize) -
Method Summary
Modifier and TypeMethodDescriptionvoidadjustBeginLineColumn(int newLine, int newCol) voidbackup(int amount) charvoidDone()protected voidExpandBuff(boolean wrapAround) protected voidFillBuff()intintintDeprecated.intintGetImage()intgetLine()Deprecated.char[]GetSuffix(int len) int(package private) booleancharreadChar()voidReInit(InputStream dstream) voidReInit(InputStream dstream, int startline, int startcolumn) voidReInit(InputStream dstream, int startline, int startcolumn, int buffersize) voidReInit(InputStream dstream, String encoding) voidReInit(InputStream dstream, String encoding, int startline, int startcolumn) voidReInit(InputStream dstream, String encoding, int startline, int startcolumn, int buffersize) voidvoidvoidvoidsetTabSize(int i) (package private) voidsetTrackLineColumn(boolean tlc) protected voidUpdateLineColumn(char c)
-
Field Details
-
staticFlag
- See Also:
-
bufsize
int bufsize -
available
int available -
tokenBegin
int tokenBegin -
bufpos
-
bufline
-
bufcolumn
-
column
-
line
-
prevCharIsCR
-
prevCharIsLF
-
inputStream
-
buffer
-
maxNextCharInd
-
inBuf
-
tabSize
-
trackLineColumn
-
-
Constructor Details
-
SimpleCharStream
-
SimpleCharStream
-
SimpleCharStream
-
SimpleCharStream
public SimpleCharStream(InputStream dstream, String encoding, int startline, int startcolumn, int buffersize) throws UnsupportedEncodingException - Throws:
UnsupportedEncodingException
-
SimpleCharStream
-
SimpleCharStream
public SimpleCharStream(InputStream dstream, String encoding, int startline, int startcolumn) throws UnsupportedEncodingException - Throws:
UnsupportedEncodingException
-
SimpleCharStream
-
SimpleCharStream
- Throws:
UnsupportedEncodingException
-
SimpleCharStream
-
-
Method Details
-
setTabSize
-
getTabSize
-
ExpandBuff
-
FillBuff
- Throws:
IOException
-
BeginToken
- Throws:
IOException
-
UpdateLineColumn
-
readChar
- Throws:
IOException
-
getColumn
Deprecated. -
getLine
Deprecated. -
getEndColumn
-
getEndLine
-
getBeginColumn
-
getBeginLine
-
backup
-
ReInit
-
ReInit
-
ReInit
-
ReInit
public void ReInit(InputStream dstream, String encoding, int startline, int startcolumn, int buffersize) throws UnsupportedEncodingException - Throws:
UnsupportedEncodingException
-
ReInit
-
ReInit
- Throws:
UnsupportedEncodingException
-
ReInit
-
ReInit
public void ReInit(InputStream dstream, String encoding, int startline, int startcolumn) throws UnsupportedEncodingException - Throws:
UnsupportedEncodingException
-
ReInit
-
GetImage
-
GetSuffix
-
Done
-
adjustBeginLineColumn
-
getTrackLineColumn
boolean getTrackLineColumn() -
setTrackLineColumn
-