Class DebugReader
java.lang.Object
org.bidib.jbidibc.debug.AbstractDebugReader
org.bidib.jbidibc.purejavacomm.debug.DebugReader
- All Implemented Interfaces:
DebugInterface
-
Field Summary
Fields inherited from class org.bidib.jbidibc.debug.AbstractDebugReader
receiverRunning, receiverThread -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidbooleanisOpened()voidopen(String portName, int baudRate, org.bidib.jbidibc.messages.ConnectionListener connectionListener, org.bidib.jbidibc.messages.helpers.Context context) voidsend(byte[] content) voidsend(String message, LineEndingEnum lineEnding) Send the bytes of the message to the outputstream and add <CR>+<LF>.Methods inherited from class org.bidib.jbidibc.debug.AbstractDebugReader
addDataToReceiveQueue, addDataToReceiveQueue, closeHandle, createReceiverThread, getConnectionListener, getMessageReceiver, getRequestedPortName, setConnectionListener, setRequestedPortName, setSendEnabled, startReceiveQueueWorker, startReceiverAndQueues, stopReceiveQueueWorker, stopReceiverThread, triggerClosePort
-
Constructor Details
-
DebugReader
-
-
Method Details
-
initialize
public void initialize()- Specified by:
initializein interfaceDebugInterface- Overrides:
initializein classAbstractDebugReader
-
getPortIdentifiers
-
close
public void close() -
isOpened
public boolean isOpened() -
open
public void open(String portName, int baudRate, org.bidib.jbidibc.messages.ConnectionListener connectionListener, org.bidib.jbidibc.messages.helpers.Context context) throws org.bidib.jbidibc.messages.exception.PortNotFoundException, org.bidib.jbidibc.messages.exception.PortNotOpenedException - Throws:
org.bidib.jbidibc.messages.exception.PortNotFoundExceptionorg.bidib.jbidibc.messages.exception.PortNotOpenedException
-
send
Send the bytes of the message to the outputstream and add <CR>+<LF>.- Parameters:
bytes- the bytes to send
-
send
public void send(byte[] content)
-