private class Protocol.Reader
extends java.lang.Object
implements java.lang.Runnable
Modifier | Constructor and Description |
---|---|
private |
Reader() |
Modifier and Type | Method and Description |
---|---|
private Message |
byteArrayToObj(byte[] obj)
Restore ("inflate") an object from an in-memory array of bytes.
|
void |
run()
This method instantiates messages from the stream and places into
the queue for further processing.
|
public void run()
run
in interface java.lang.Runnable
private Message byteArrayToObj(byte[] obj) throws java.io.IOException, java.lang.ClassNotFoundException
obj
- The flattened object to restore.java.io.IOException
- on errorjava.lang.ClassNotFoundException
- if class specified in the binary stream was not found