Class CNSNetworkMessageFilter.FilterRX

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.io.ByteArrayInputStream byteIn
      The input end to read the message back from
      private java.io.DataInputStream dis
      The data input stream used to read in the parts of the message
    • Constructor Summary

      Constructors 
      Constructor Description
      FilterRX()
      Creates a new decoding CNSMessage filter
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object filterRX​(byte[] bytes)
      Decodes the byte equivalent of a CNSMessage
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • byteIn

        private java.io.ByteArrayInputStream byteIn
        The input end to read the message back from
      • dis

        private java.io.DataInputStream dis
        The data input stream used to read in the parts of the message
    • Constructor Detail

      • FilterRX

        FilterRX()
        Creates a new decoding CNSMessage filter
    • Method Detail

      • filterRX

        public java.lang.Object filterRX​(byte[] bytes)
                                  throws java.io.IOException
        Decodes the byte equivalent of a CNSMessage
        Specified by:
        filterRX in interface NetworkMessageFilter.FilterRx
        Parameters:
        bytes - The byte equivalent of a CNSMessage
        Returns:
        The recreated CNSMessage
        Throws:
        java.io.IOException - Thrown if something goes wrong during the recreation