Class BNSNetworkMessageFilter.FilterRX

    • Field Summary

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

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object filterRX​(byte[] bytes)
      Decodes a byte array back into a BNSMessage
      • 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 of the pipe to read the message back
      • dis

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

      • FilterRX

        FilterRX()
        Creates a new decoding BNSMessageFilter
    • Method Detail

      • filterRX

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