Class SerialAdapter.Reader

  • All Implemented Interfaces:
    java.lang.Runnable
    Enclosing class:
    SerialAdapter

    class SerialAdapter.Reader
    extends java.lang.Object
    implements java.lang.Runnable
    Internal class to handle the separate character-receive thread.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) static int maxMsg  
      (package private) java.lang.StringBuffer msg  
      (package private) java.lang.String msgString  
    • Constructor Summary

      Constructors 
      Constructor Description
      Reader()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) void handleIncomingData()  
      void run()
      Handle incoming characters.
      • Methods inherited from class java.lang.Object

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

      • run

        public void run()
        Handle incoming characters. This is a permanent loop, looking for input messages in character form on the stream connected to the PortController via connectPort. Terminates with the input stream breaking out of the try block.
        Specified by:
        run in interface java.lang.Runnable
      • handleIncomingData

        void handleIncomingData()
                         throws java.io.IOException
        Throws:
        java.io.IOException