public class UniversalPrinter extends RTPrinter
piName, printerInterface| Constructor and Description |
|---|
UniversalPrinter() |
| Modifier and Type | Method and Description |
|---|---|
void |
connect(java.lang.Object object)
Connect Printer
|
void |
disConnect()
Disconnect printer
|
ConnectStateEnum |
getConnectState()
Get connected state.
|
byte[] |
readMsg()
Read the msg from the printer in sub-thread
|
void |
writeMsg(byte[] btCmds)
Write byte array to the printer in main-thread
|
void |
writeMsgAsync(byte[] btCmds)
Write byte array to the printer in sub-thread
|
getIsPrinting, getPiName, getPrinterInterface, getprinterStausMsg, setAlwaysReadInputStream, setConnectListener, setPiName, setPrinterInterface, setPrintListenerpublic void connect(java.lang.Object object)
throws java.lang.Exception
public void disConnect()
disConnect in class RTPrinterpublic ConnectStateEnum getConnectState()
getConnectState in class RTPrinterpublic void writeMsg(byte[] btCmds)
public void writeMsgAsync(byte[] btCmds)
writeMsgAsync in class RTPrinterbtCmds -