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(InputStream inputStream)
Read a byte stream and process bytes.
|
protected boolean |
dealWithRemainder(byte[] buffer,
int offset,
int len,
InputStream inputStream)
Deal with the remainder of the input.
|
finishUppublic final boolean dealWithBytes(InputStream inputStream) throws IOException, ManifoldCFException
dealWithBytes in class ByteReceiverIOExceptionManifoldCFExceptionpublic abstract boolean dealWithByte(byte b)
throws IOException,
ManifoldCFException
IOExceptionManifoldCFExceptionprotected boolean dealWithRemainder(byte[] buffer,
int offset,
int len,
InputStream inputStream)
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