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. |
getPiName, getPrinterInterface, setPiName, setPrinterInterface
public void connect(java.lang.Object object) throws java.lang.Exception
RTPrinter
public void disConnect()
RTPrinter
disConnect
in class RTPrinter
public ConnectStateEnum getConnectState()
RTPrinter
getConnectState
in class RTPrinter
public void writeMsg(byte[] btCmds)
RTPrinter
public void writeMsgAsync(byte[] btCmds)
RTPrinter
writeMsgAsync
in class RTPrinter