public class DebugReader extends Object implements DebugInterface
| Constructor and Description |
|---|
DebugReader(DebugMessageProcessor messageReceiver) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
org.bidib.jbidibc.core.ConnectionListener |
getConnectionListener() |
DebugMessageProcessor |
getMessageReceiver() |
List<String> |
getPortIdentifiers() |
void |
initialize() |
boolean |
isOpened() |
void |
open(String portName,
int baudRate,
org.bidib.jbidibc.core.ConnectionListener connectionListener,
org.bidib.jbidibc.core.helpers.Context context) |
void |
send(byte[] content) |
void |
send(String message,
LineEndingEnum lineEnding)
Send the bytes of the message to the outputstream and add <CR>+<LF>.
|
void |
setConnectionListener(org.bidib.jbidibc.core.ConnectionListener connectionListener) |
public DebugReader(DebugMessageProcessor messageReceiver)
public void initialize()
initialize in interface DebugInterfacepublic List<String> getPortIdentifiers()
getPortIdentifiers in interface DebugInterfacepublic DebugMessageProcessor getMessageReceiver()
getMessageReceiver in interface DebugInterfacepublic org.bidib.jbidibc.core.ConnectionListener getConnectionListener()
public void setConnectionListener(org.bidib.jbidibc.core.ConnectionListener connectionListener)
connectionListener - the connectionListener to setpublic void close()
close in interface DebugInterfacepublic boolean isOpened()
isOpened in interface DebugInterfacepublic void open(String portName, int baudRate, org.bidib.jbidibc.core.ConnectionListener connectionListener, org.bidib.jbidibc.core.helpers.Context context) throws org.bidib.jbidibc.core.exception.PortNotFoundException, org.bidib.jbidibc.core.exception.PortNotOpenedException
open in interface DebugInterfaceorg.bidib.jbidibc.core.exception.PortNotFoundExceptionorg.bidib.jbidibc.core.exception.PortNotOpenedExceptionpublic void send(String message, LineEndingEnum lineEnding)
send in interface DebugInterfacebytes - the bytes to sendpublic void send(byte[] content)
send in interface DebugInterfaceCopyright © 2021. All rights reserved.