Package jmri.jmrix.loconet
Class LnPacketizer.RcvHandler
- java.lang.Object
-
- jmri.jmrix.loconet.LnPacketizer.RcvHandler
-
- All Implemented Interfaces:
java.lang.Runnable
- Enclosing class:
- LnPacketizer
protected class LnPacketizer.RcvHandler extends java.lang.Object implements java.lang.Runnable
Captive class to handle incoming characters. This is a permanent loop, looking for input messages in character form on the stream connected to the LnPortController viaconnectPort
.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) LnTrafficController
trafficController
Remember the LnPacketizer object
-
Constructor Summary
Constructors Constructor Description RcvHandler(LnTrafficController lt)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run()
Handle incoming characters.
-
-
-
Field Detail
-
trafficController
LnTrafficController trafficController
Remember the LnPacketizer object
-
-
Constructor Detail
-
RcvHandler
public RcvHandler(LnTrafficController lt)
-
-
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 LnPortController viaconnectPort
. Terminates with the input stream breaking out of the try block.- Specified by:
run
in interfacejava.lang.Runnable
-
-