public class PinPrinter extends RTPrinter
piName, printerInterface| Constructor and Description |
|---|
PinPrinter() |
| Modifier and Type | Method and Description |
|---|---|
void |
connect(java.lang.Object object)
连接打印机
connect the printer. |
void |
disConnect()
断开连接
Do Disconnect, interrupt the connection. |
ConnectStateEnum |
getConnectState()
获取当前连接状态
Get connection state |
byte[] |
readMsg()
读取打印机的回传数据
Read the printer's msgs which is sent back. |
void |
writeMsg(byte[] btCmds)
同步写指令到打印机
send byte array commands in ui-thread(Main thread). |
void |
writeMsgAsync(byte[] btCmds)
异步写指令到打印机
send byte array commands in sub-thread. |
getIsPrinting, getPiName, getPrinterInterface, getprinterStausMsg, setAlwaysReadInputStream, setConnectListener, setPiName, setPrinterInterface, setPrintListenerpublic void connect(java.lang.Object object)
throws java.lang.Exception
RTPrinterpublic void disConnect()
RTPrinterdisConnect in class RTPrinterpublic ConnectStateEnum getConnectState()
RTPrintergetConnectState in class RTPrinterpublic void writeMsg(byte[] btCmds)
RTPrinterpublic void writeMsgAsync(byte[] btCmds)
RTPrinterwriteMsgAsync in class RTPrinter