Package com.reportmill.parsing
Class SimpleCharStream
java.lang.Object
com.reportmill.parsing.SimpleCharStream
An implementation of interface CharStream, where the stream is assumed to
 contain only ASCII characters (without unicode processing).
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected int[]protected char[]protected int[]intprotected intprotected intprotected Readerprotected intprotected intprotected booleanprotected booleanstatic final booleanprotected int
- 
Constructor SummaryConstructorsConstructorDescriptionSimpleCharStream(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 SummaryModifier and TypeMethodDescriptionvoidadjustBeginLineColumn(int newLine, int newCol) Method to adjust line and column numbers for the start of a token.voidbackup(int amount) charvoidDone()protected voidExpandBuff(boolean wrapAround) protected voidFillBuff()intintintDeprecated.intintGetImage()intgetLine()Deprecated.char[]GetSuffix(int len) protected intgetTabSize(int i) charreadChar()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) voidvoidvoidprotected voidsetTabSize(int i) protected voidUpdateLineColumn(char c) 
- 
Field Details- 
staticFlagpublic static final boolean staticFlag- See Also:
 
- 
bufpospublic int bufpos
- 
buflineprotected int[] bufline
- 
bufcolumnprotected int[] bufcolumn
- 
columnprotected int column
- 
lineprotected int line
- 
prevCharIsCRprotected boolean prevCharIsCR
- 
prevCharIsLFprotected boolean prevCharIsLF
- 
inputStream
- 
bufferprotected char[] buffer
- 
maxNextCharIndprotected int maxNextCharInd
- 
inBufprotected int inBuf
- 
tabSizeprotected int tabSize
 
- 
- 
Constructor Details- 
SimpleCharStream
- 
SimpleCharStream
- 
SimpleCharStream
- 
SimpleCharStreampublic SimpleCharStream(InputStream dstream, String encoding, int startline, int startcolumn, int buffersize) throws UnsupportedEncodingException - Throws:
- UnsupportedEncodingException
 
- 
SimpleCharStream
- 
SimpleCharStreampublic SimpleCharStream(InputStream dstream, String encoding, int startline, int startcolumn) throws UnsupportedEncodingException - Throws:
- UnsupportedEncodingException
 
- 
SimpleCharStream
- 
SimpleCharStream- Throws:
- UnsupportedEncodingException
 
- 
SimpleCharStream
 
- 
- 
Method Details- 
setTabSizeprotected void setTabSize(int i) 
- 
getTabSizeprotected int getTabSize(int i) 
- 
ExpandBuffprotected void ExpandBuff(boolean wrapAround) 
- 
FillBuff- Throws:
- IOException
 
- 
BeginToken- Throws:
- IOException
 
- 
UpdateLineColumnprotected void UpdateLineColumn(char c) 
- 
readChar- Throws:
- IOException
 
- 
getColumnDeprecated.- See Also:
 
- 
getLineDeprecated.- See Also:
 
- 
getEndColumnpublic int getEndColumn()
- 
getEndLinepublic int getEndLine()
- 
getBeginColumnpublic int getBeginColumn()
- 
getBeginLinepublic int getBeginLine()
- 
backuppublic void backup(int amount) 
- 
ReInit
- 
ReInit
- 
ReInit
- 
ReInitpublic void ReInit(InputStream dstream, String encoding, int startline, int startcolumn, int buffersize) throws UnsupportedEncodingException - Throws:
- UnsupportedEncodingException
 
- 
ReInit
- 
ReInit- Throws:
- UnsupportedEncodingException
 
- 
ReInit
- 
ReInitpublic void ReInit(InputStream dstream, String encoding, int startline, int startcolumn) throws UnsupportedEncodingException - Throws:
- UnsupportedEncodingException
 
- 
ReInit
- 
GetImage
- 
GetSuffixpublic char[] GetSuffix(int len) 
- 
Donepublic void Done()
- 
adjustBeginLineColumnpublic void adjustBeginLineColumn(int newLine, int newCol) Method to adjust line and column numbers for the start of a token.
 
-