Class CharacterStream
- java.lang.Object
-
- org.apache.manifoldcf.scriptengine.CharacterStream
-
public class CharacterStream extends java.lang.ObjectConvert a Reader into a sequence of characters, while keeping track of line endings.
-
-
Field Summary
Fields Modifier and Type Field Description protected intcharacterNumberprotected intcurrentCharacterprotected intlineNumberprotected java.io.Readerreader
-
Constructor Summary
Constructors Constructor Description CharacterStream(java.io.Reader reader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCharacterNumber()intgetLineNumber()intpeek()protected intreadNextCharacter()voidskip()
-
-
-
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
-
-