static final class CNSNetworkMessageFilter.FilterTX extends java.lang.Object implements NetworkMessageFilter.FilterTx
| Modifier and Type | Field and Description |
|---|---|
private java.io.ByteArrayOutputStream |
baos
The byte stream we will use to retrieve the byte message from
|
private java.io.DataOutputStream |
dos
The data stream, used to write the parts of the CNSMessage to
|
| Constructor and Description |
|---|
FilterTX()
Creates a new CNS encoding filter
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
filterTX(java.lang.Object obj)
Converts an object (a CNSMessage) into bytes
|
private final java.io.ByteArrayOutputStream baos
private final java.io.DataOutputStream dos
public byte[] filterTX(java.lang.Object obj)
throws java.io.IOException
filterTX in interface NetworkMessageFilter.FilterTxobj - The CNSMessage to convertjava.io.IOException - Thrown if something goes wrong during the conversion