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.
|
finishUppublic SingleCharacterReceiver(int chunkSize)
public final boolean dealWithCharacters(java.io.Reader reader)
throws java.io.IOException,
ManifoldCFException
dealWithCharacters in class CharacterReceiverjava.io.IOExceptionManifoldCFExceptionpublic abstract boolean dealWithCharacter(char c)
throws java.io.IOException,
ManifoldCFException
java.io.IOExceptionManifoldCFExceptionprotected 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.IOExceptionManifoldCFException