Class JsscSerialPortAdapter
java.lang.Object
tj.epic.cashcode.JsscSerialPortAdapter
- All Implemented Interfaces:
SerialPortAdapter
JSSC-based implementation of
SerialPortAdapter.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
JsscSerialPortAdapter
-
-
Method Details
-
open
public void open() throws jssc.SerialPortException- Specified by:
openin interfaceSerialPortAdapter- Throws:
jssc.SerialPortException
-
close
public void close() throws jssc.SerialPortException- Specified by:
closein interfaceSerialPortAdapter- Throws:
jssc.SerialPortException
-
setParams
public void setParams(int baudRate, int dataBits, int stopBits, int parity) throws jssc.SerialPortException - Specified by:
setParamsin interfaceSerialPortAdapter- Throws:
jssc.SerialPortException
-
isOpened
public boolean isOpened()- Specified by:
isOpenedin interfaceSerialPortAdapter
-
write
public void write(int[] data) throws jssc.SerialPortException - Specified by:
writein interfaceSerialPortAdapter- Throws:
jssc.SerialPortException
-
read
public int[] read() throws jssc.SerialPortException- Specified by:
readin interfaceSerialPortAdapter- Throws:
jssc.SerialPortException
-