public class PrinterWritterRXTX extends PrinterWritter implements gnu.io.SerialPortEventListener
| Constructor and Description |
|---|
PrinterWritterRXTX(String sPortPrinter)
Creates a new instance of PrinterWritterComm
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
daemonClose()
Close the output buffer and the communication link
|
protected void |
daemonFlush()
Flush the output buffer
|
protected void |
daemonPrintJob()
Start a print job if required, otherwise like flush
|
protected void |
daemonWrite(byte[] data)
Write a byte array
|
List<Byte> |
getStatus(byte[] status_cmd) |
void |
serialEvent(gnu.io.SerialPortEvent evt) |
close, flush, init, startDaemon, startJob, write, writepublic PrinterWritterRXTX(String sPortPrinter) throws TicketPrinterException
sPortPrinter - TicketPrinterExceptionprotected void daemonWrite(byte[] data)
PrinterWritterdaemonWrite in class PrinterWritterprotected void daemonFlush()
PrinterWritterdaemonFlush in class PrinterWritterprotected void daemonClose()
PrinterWritterdaemonClose in class PrinterWritterpublic void serialEvent(gnu.io.SerialPortEvent evt)
serialEvent in interface gnu.io.SerialPortEventListenerpublic List<Byte> getStatus(byte[] status_cmd)
getStatus in class PrinterWritterprotected void daemonPrintJob()
PrinterWritterdaemonPrintJob in class PrinterWritterCopyright © 2021. All rights reserved.