Class of SerialPortPrinter implement.
More...
Class of SerialPortPrinter implement.
◆ close()
| void com.paydevice.smartpos.sdk.printer.SerialPortPrinter.close |
( |
| ) |
throws SmartPosException |
◆ getPrinterList()
| String [] com.paydevice.smartpos.sdk.printer.SerialPortPrinter.getPrinterList |
( |
| ) |
|
Get all serialport path.
- Returns
- path string array of all serialport
◆ getType()
| int com.paydevice.smartpos.sdk.printer.SerialPortPrinter.getType |
( |
| ) |
|
◆ open()
| void com.paydevice.smartpos.sdk.printer.SerialPortPrinter.open |
( |
| ) |
throws SmartPosException |
◆ read()
| int com.paydevice.smartpos.sdk.printer.SerialPortPrinter.read |
( |
byte[] |
buf, |
|
|
int |
len |
|
) |
| throws SmartPosException |
◆ selectBuiltInPrinter()
| void com.paydevice.smartpos.sdk.printer.SerialPortPrinter.selectBuiltInPrinter |
( |
| ) |
|
◆ selectPrinter()
| void com.paydevice.smartpos.sdk.printer.SerialPortPrinter.selectPrinter |
( |
String |
path, |
|
|
int |
speed |
|
) |
| |
Select external serialport printer.
- Parameters
-
| path | of the serialport, e.g: /dev/ttyUSB0 |
| speed | at which to open the serialport, e.g: 115200 |
- Returns
◆ write()
| void com.paydevice.smartpos.sdk.printer.SerialPortPrinter.write |
( |
byte[] |
buf, |
|
|
int |
len |
|
) |
| throws SmartPosException |
The documentation for this class was generated from the following file: