public abstract class SingleCharacterReceiver extends CharacterReceiver
Modifier and Type | Field and Description |
---|---|
protected char[] |
charBuffer |
Constructor and Description |
---|
SingleCharacterReceiver(int chunkSize)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
dealWithCharacter(char c)
Receive a byte.
|
boolean |
dealWithCharacters(java.io.Reader reader)
Receive a stream of characters.
|
protected boolean |
dealWithRemainder(char[] buffer,
int offset,
int len,
java.io.Reader reader)
Deal with the remainder of the input.
|
finishUp
public SingleCharacterReceiver(int chunkSize)
public final boolean dealWithCharacters(java.io.Reader reader) throws java.io.IOException, ManifoldCFException
dealWithCharacters
in class CharacterReceiver
java.io.IOException
ManifoldCFException
public abstract boolean dealWithCharacter(char c) throws java.io.IOException, ManifoldCFException
java.io.IOException
ManifoldCFException
protected boolean dealWithRemainder(char[] buffer, int offset, int len, java.io.Reader reader) throws java.io.IOException, ManifoldCFException
buffer
- is the buffer of characters that should come first.offset
- is the offset within the buffer of the first character.len
- is the number of characters in the buffer.java.io.IOException
ManifoldCFException