|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hcilab.btprinter.Status
public class Status
This class contains the status data sent back by the printer and provides methods to access them
| Field Summary | |
|---|---|
static int |
STATUS_LENGTH
|
| Constructor Summary | |
|---|---|
Status(byte[] status)
Initializes a new status message. |
|
| Method Summary | |
|---|---|
java.lang.String |
getErrorMsg()
Provides a human readible message of the error status. |
java.lang.String |
getReadyToPrintMsg()
Provides a human readible message of the ready status. |
boolean |
hasEmptyBattery()
Check in case of error status. |
boolean |
hasHighTemperature()
Check in case of error status. |
boolean |
hasHighVoltageAdapter()
Check in case of error status. |
boolean |
hasNoPaper()
Check in case of error status. |
boolean |
hasNoPaperCassette()
Check in case of error status. |
boolean |
hasPaperCassetteChange()
Check in case of error status. |
boolean |
hasPaperJam()
Check in case of error status. |
boolean |
hasProgramError()
Check in case of error status. |
boolean |
hasSystemError()
Check in case of error status. |
boolean |
isErrorStatus()
Checks if the status is an error status. |
boolean |
isReadyToPrint()
Checks if the printer is ready to start printing. |
boolean |
isReplyStatus()
Checks if the status is a reply to a status request. |
boolean |
isValidStatus()
Checks if the status is valid for the supported printer model. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int STATUS_LENGTH
| Constructor Detail |
|---|
public Status(byte[] status)
throws java.lang.IllegalArgumentException
status - Status bytes received by printer
java.lang.IllegalArgumentException - If bytes have the wrong format| Method Detail |
|---|
public java.lang.String getErrorMsg()
public java.lang.String getReadyToPrintMsg()
public boolean hasEmptyBattery()
public boolean hasHighTemperature()
public boolean hasHighVoltageAdapter()
public boolean hasNoPaper()
public boolean hasNoPaperCassette()
public boolean hasPaperCassetteChange()
public boolean hasPaperJam()
public boolean hasProgramError()
public boolean hasSystemError()
public boolean isErrorStatus()
public boolean isReadyToPrint()
public boolean isReplyStatus()
public boolean isValidStatus()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||