private class Protocol.Writer
extends java.lang.Object
implements java.lang.Runnable
Modifier | Constructor and Description |
---|---|
private |
Writer() |
Modifier and Type | Method and Description |
---|---|
private byte[] |
objToByteArray(java.io.Serializable obj)
Serialize the given object into an in-memory array of bytes.
|
void |
run()
This method obtains messages from the Outbound Queue and writes them
into output stream.
|
public void run()
run
in interface java.lang.Runnable
private byte[] objToByteArray(java.io.Serializable obj) throws java.io.IOException
obj
- The graph of objects to be converted.java.io.IOException