Class ZTC640XNetPacketizer

  • All Implemented Interfaces:
    XNetInterface

    public class ZTC640XNetPacketizer
    extends XNetPacketizer
    This is an extention of the XNetPacketizer to handle the device specific requirements of the ZTC640.

    In particular, ZTC640XNetPacketizer adds functions to add and remove the 0xFF bytes that appear prior to some messages.

    • Method Detail

      • loadChars

        protected void loadChars​(AbstractMRReply msg,
                                 java.io.DataInputStream istream)
                          throws java.io.IOException
        Get characters from the input source, and file a message.

        Returns only when the message is complete.

        Only used in the Receive thread.

        Overrides:
        loadChars in class XNetTrafficController
        Parameters:
        msg - message to fill
        istream - character source.
        Throws:
        java.io.IOException - when presented by the input source.