Package org.drools.mvel.parser
Class SimpleCharStream
java.lang.Object
org.drools.mvel.parser.AbstractCharStream
org.drools.mvel.parser.SimpleCharStream
- All Implemented Interfaces:
CharStream
An implementation of interface CharStream, where the stream is assumed to
contain only ASCII characters (without unicode processing).
-
Field Summary
FieldsFields inherited from class org.drools.mvel.parser.AbstractCharStream
available, bufcolumn, buffer, bufline, bufpos, bufsize, column, DEFAULT_BUF_SIZE, inBuf, line, maxNextCharInd, nextCharBuf, nextCharInd, prevCharIsCR, prevCharIsLF, tokenBegin -
Constructor Summary
ConstructorsConstructorDescriptionSimpleCharStream(Provider dstream) Constructor.SimpleCharStream(Provider dstream, int startline, int startcolumn) Constructor.SimpleCharStream(Provider dstream, int startline, int startcolumn, int buffersize) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidfillBuff()charreadChar()Read a character.voidReinitialise.voidReinitialise.voidReinitialise.protected voidprotected intstreamRead(char[] buffer, int offset, int len) Methods inherited from class org.drools.mvel.parser.AbstractCharStream
adjustBeginLineColumn, backup, beginToken, done, expandBuff, getBeginColumn, getBeginLine, getEndColumn, getEndLine, getImage, getSuffix, getTabSize, isTrackLineColumn, reInit, setTabSize, setTrackLineColumn, updateLineColumn
-
Field Details
-
inputStream
-
-
Constructor Details
-
SimpleCharStream
Constructor. -
SimpleCharStream
Constructor. -
SimpleCharStream
Constructor.
-
-
Method Details
-
streamRead
- Specified by:
streamReadin classAbstractCharStream- Throws:
IOException
-
streamClose
- Specified by:
streamClosein classAbstractCharStream- Throws:
IOException
-
fillBuff
- Overrides:
fillBuffin classAbstractCharStream- Throws:
IOException
-
readChar
Read a character.- Specified by:
readCharin interfaceCharStream- Overrides:
readCharin classAbstractCharStream- Returns:
- the next character from the selected input
- Throws:
IOException- on IO error
-
reInit
Reinitialise. -
reInit
Reinitialise. -
reInit
Reinitialise.
-