org.jcsp.net2
Class RawNetworkMessageFilter.FilterTX

java.lang.Object
  extended by org.jcsp.net2.RawNetworkMessageFilter.FilterTX
All Implemented Interfaces:
NetworkMessageFilter.FilterTx
Enclosing class:
RawNetworkMessageFilter

public static final class RawNetworkMessageFilter.FilterTX
extends Object
implements NetworkMessageFilter.FilterTx

The sending Filter

Author:
Kevin Chalmers

Constructor Summary
RawNetworkMessageFilter.FilterTX()
          Creates a new output filter
 
Method Summary
 byte[] filterTX(Object obj)
          Will send a byte array as raw bytes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RawNetworkMessageFilter.FilterTX

public RawNetworkMessageFilter.FilterTX()
Creates a new output filter

Method Detail

filterTX

public byte[] filterTX(Object obj)
                throws IOException
Will send a byte array as raw bytes

Specified by:
filterTX in interface NetworkMessageFilter.FilterTx
Parameters:
obj - The object to send. This must be a byte array
Returns:
The same byte array as sent in
Throws:
IOException - Thrown if the sent object is not a byte array


Copyright © 1996-2012. All Rights Reserved.