Class CharacterStream
- java.lang.Object
-
- org.apache.manifoldcf.scriptengine.CharacterStream
-
public class CharacterStream extends java.lang.Object
Convert a Reader into a sequence of characters, while keeping track of line endings.
-
-
Field Summary
Fields Modifier and Type Field Description protected int
characterNumber
protected int
currentCharacter
protected int
lineNumber
protected java.io.Reader
reader
-
Constructor Summary
Constructors Constructor Description CharacterStream(java.io.Reader reader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCharacterNumber()
int
getLineNumber()
int
peek()
protected int
readNextCharacter()
void
skip()
-
-
-
Method Detail
-
peek
public int peek() throws ScriptException
- Throws:
ScriptException
-
skip
public void skip()
-
getLineNumber
public int getLineNumber()
-
getCharacterNumber
public int getCharacterNumber()
-
readNextCharacter
protected int readNextCharacter() throws ScriptException
- Throws:
ScriptException
-
-