public abstract class PrinterStatus
extends Object
| Modifier and Type | Field and Description |
|---|---|
boolean |
isHeadCold
true if the head is cold. |
boolean |
isHeadOpen
true if the head is open. |
boolean |
isHeadTooHot
true if the head is too hot. |
boolean |
isPaperOut
true if the paper is out. |
boolean |
isPartialFormatInProgress
true if there is a partial format in progress. |
boolean |
isPaused
true if the printer is paused. |
boolean |
isReadyToPrint
true if the printer reports back that it is ready to print |
boolean |
isReceiveBufferFull
true if the receive buffer is full. |
boolean |
isRibbonOut
true if the ribbon is out. |
int |
labelLengthInDots
The length of the label in dots.
|
int |
labelsRemainingInBatch
The number of labels remaining in the batch.
|
int |
numberOfFormatsInReceiveBuffer
The number of formats currently in the receive buffer of the printer.
|
ZplPrintMode |
printMode
The print mode.
|
| Constructor and Description |
|---|
PrinterStatus(Connection printerConnection)
Constructs a PrinterStatus instance that can be used to determine the status of a printer.
|
public ZplPrintMode printMode
ZplPrintMode.UNKNOWNpublic int labelLengthInDots
public int numberOfFormatsInReceiveBuffer
public int labelsRemainingInBatch
public boolean isPartialFormatInProgress
true if there is a partial format in progress. For CPCL printers this is always falsepublic boolean isHeadCold
true if the head is cold. For CPCL printers this is always falsepublic boolean isHeadOpen
true if the head is open.public boolean isHeadTooHot
true if the head is too hot. For CPCL printers this is always falsepublic boolean isPaperOut
true if the paper is out.public boolean isRibbonOut
true if the ribbon is out.public boolean isReceiveBufferFull
true if the receive buffer is full. For CPCL printers this is always falsepublic boolean isPaused
true if the printer is paused. For CPCL printers this is always falsepublic boolean isReadyToPrint
true if the printer reports back that it is ready to printpublic PrinterStatus(Connection printerConnection) throws ConnectionException
ZebraPrinter.getCurrentStatus()printerConnection - connection to the target printerConnectionException - if an I/O error occurs
© 2017 ZIH Corp. All Rights Reserved.