public abstract class PrinterWritter extends Object
Constructor and Description |
---|
PrinterWritter()
The implementing classes must handle the actual comunication with the device.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected abstract void |
daemonClose()
Close the output buffer and the communication link
|
protected abstract void |
daemonFlush()
Flush the output buffer
|
protected abstract void |
daemonPrintJob()
Start a print job if required, otherwise like flush
|
protected abstract void |
daemonWrite(byte[] data)
Write a byte array
|
void |
flush() |
List<Byte> |
getStatus(byte[] status_cmd) |
void |
init(UnicodeTranslator trans)
When a printer queue is to be used init() will be used to initialize the printer
before printing the job.
|
protected void |
startDaemon()
Start the daemon thread which handles the printer buffer.
|
void |
startJob() |
void |
write(byte[] data) |
void |
write(String sValue) |
public PrinterWritter()
protected abstract void daemonWrite(byte[] data)
data
- protected abstract void daemonFlush()
protected abstract void daemonPrintJob()
protected abstract void daemonClose()
protected final void startDaemon()
public final void write(byte[] data)
public final void write(String sValue)
public final void flush()
public final void close()
public final void startJob()
public void init(UnicodeTranslator trans)
trans
- the translation table to be used fort this printerCopyright © 2021. All rights reserved.