Package org.jcsp.net2.bns
Class BNSNetworkMessageFilter.FilterTX
java.lang.Object
org.jcsp.net2.bns.BNSNetworkMessageFilter.FilterTX
- All Implemented Interfaces:
NetworkMessageFilter.FilterTx
- Enclosing class:
BNSNetworkMessageFilter
static final class BNSNetworkMessageFilter.FilterTX
extends Object
implements NetworkMessageFilter.FilterTx
The encoding filter used to convert a BNSMessage into bytes
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ByteArrayOutputStream
The byte stream we will use to retrieve the byte message fromprivate final DataOutputStream
the data stream used to write the parts of the BNSMessage to -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
baos
The byte stream we will use to retrieve the byte message from -
dos
the data stream used to write the parts of the BNSMessage to
-
-
Constructor Details
-
FilterTX
FilterTX()Creates a new BNSMessage encoding filter
-
-
Method Details
-
filterTX
Converts a BNSMessage into bytes- Specified by:
filterTX
in interfaceNetworkMessageFilter.FilterTx
- Parameters:
obj
- A BNSMessage to convert- Returns:
- the byte equivalent of the BNSMessage
- Throws:
IOException
- Thrown if something goes wrong during the conversion
-