static final class BNSNetworkMessageFilter.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 BNSMessage to
|
| Constructor and Description |
|---|
FilterTX()
Creates a new BNSMessage encoding filter
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
filterTX(java.lang.Object obj)
Converts a BNSMessage 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 - A BNSMessage to convertjava.io.IOException - Thrown if something goes wrong during the conversion