public class EdrDriver extends BaseDriver
printListener| Constructor and Description |
|---|
EdrDriver(BluetoothEdrConfigBean bluetoothEdrConfigBean) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
ConnectStateEnum |
getConnectState() |
BluetoothInterface |
getPrinterInterface() |
byte[] |
readMsg() |
void |
run() |
void |
setPrinterInterface(BluetoothInterface printerInterface) |
void |
write(byte[] btMsg) |
void |
writeASync(byte[] btMsg) |
getisAlwaysReadInputStream, getIsPrinting, getPrintListener, input2byte, seIsPrinting, setAlwaysReadInputStream, setPrintListeneractiveCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic EdrDriver(BluetoothEdrConfigBean bluetoothEdrConfigBean)
public void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic byte[] readMsg()
public void write(byte[] btMsg)
public void writeASync(byte[] btMsg)
public void close()
public ConnectStateEnum getConnectState()
getConnectState in class BaseDriverpublic void setPrinterInterface(BluetoothInterface printerInterface)
public BluetoothInterface getPrinterInterface()