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(Reader reader)
Receive a stream of characters.
|
protected boolean |
dealWithRemainder(char[] buffer,
int offset,
int len,
Reader reader)
Deal with the remainder of the input.
|
finishUppublic SingleCharacterReceiver(int chunkSize)
public final boolean dealWithCharacters(Reader reader) throws IOException, ManifoldCFException
dealWithCharacters in class CharacterReceiverIOExceptionManifoldCFExceptionpublic abstract boolean dealWithCharacter(char c)
throws IOException,
ManifoldCFException
IOExceptionManifoldCFExceptionprotected boolean dealWithRemainder(char[] buffer,
int offset,
int len,
Reader reader)
throws 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.inputStream - is the stream that should come after the characters in the buffer.IOExceptionManifoldCFException