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, write
public PrinterWritterRXTX(String sPortPrinter) throws TicketPrinterException
sPortPrinter
- TicketPrinterException
protected void daemonWrite(byte[] data)
PrinterWritter
daemonWrite
in class PrinterWritter
protected void daemonFlush()
PrinterWritter
daemonFlush
in class PrinterWritter
protected void daemonClose()
PrinterWritter
daemonClose
in class PrinterWritter
public void serialEvent(gnu.io.SerialPortEvent evt)
serialEvent
in interface gnu.io.SerialPortEventListener
public List<Byte> getStatus(byte[] status_cmd)
getStatus
in class PrinterWritter
protected void daemonPrintJob()
PrinterWritter
daemonPrintJob
in class PrinterWritter
Copyright © 2021. All rights reserved.