public abstract class SingleByteReceiver extends ByteReceiver
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
byteBuffer |
| Constructor and Description |
|---|
SingleByteReceiver(int chunkSize)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
dealWithByte(byte b)
Receive a byte.
|
boolean |
dealWithBytes(java.io.InputStream inputStream)
Read a byte stream and process bytes.
|
protected boolean |
dealWithRemainder(byte[] buffer,
int offset,
int len,
java.io.InputStream inputStream)
Deal with the remainder of the input.
|
finishUppublic final boolean dealWithBytes(java.io.InputStream inputStream)
throws java.io.IOException,
ManifoldCFException
dealWithBytes in class ByteReceiverjava.io.IOExceptionManifoldCFExceptionpublic abstract boolean dealWithByte(byte b)
throws java.io.IOException,
ManifoldCFException
java.io.IOExceptionManifoldCFExceptionprotected boolean dealWithRemainder(byte[] buffer,
int offset,
int len,
java.io.InputStream inputStream)
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.inputStream - is the stream that should come after the characters in the buffer.java.io.IOExceptionManifoldCFException