Package org.jcsp.net2

Class ObjectNetworkMessageFilter.FilterTX

    • Constructor Detail

      • FilterTX

        public FilterTX()
        Creates a new encoding object filter
    • Method Detail

      • filterTX

        public byte[] filterTX​(Object obj)
                        throws IOException
        Encodes an object into bytes by using Object serialization
        Specified by:
        filterTX in interface NetworkMessageFilter.FilterTx
        Parameters:
        obj - The Object to serialize
        Returns:
        The byte array equivalent of the object
        Throws:
        IOException - Thrown if something goes wrong during the serialization