Package jmri.jmrix.ncemonitor
Class NcePacketMonitorPanel.Reader
- java.lang.Object
-
- jmri.jmrix.ncemonitor.NcePacketMonitorPanel.Reader
-
- All Implemented Interfaces:
java.lang.Runnable
- Enclosing class:
- NcePacketMonitorPanel
class NcePacketMonitorPanel.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) java.lang.String
matchString
(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.
-
-
-
Field Detail
-
maxMsg
static final int maxMsg
- See Also:
- Constant Field Values
-
msg
java.lang.StringBuffer msg
-
msgString
java.lang.String msgString
-
matchString
java.lang.String matchString
-
-
Constructor Detail
-
Reader
Reader()
-
-
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 viaconnectPort
. Terminates with the input stream breaking out of the try block.- Specified by:
run
in interfacejava.lang.Runnable
-
handleIncomingData
void handleIncomingData() throws java.io.IOException
- Throws:
java.io.IOException
-
-