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