public class PosPrinterDev
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
static class |
PosPrinterDev.ErrorCode |
class |
PosPrinterDev.PortInfo |
static class |
PosPrinterDev.PortType |
class |
PosPrinterDev.ReturnMessage |
class |
PosPrinterDev.UsbPort |
构造器和说明 |
---|
PosPrinterDev(PosPrinterDev.PortType portType,
Context context) |
PosPrinterDev(PosPrinterDev.PortType portType,
Context context,
java.lang.String usbPathName) |
PosPrinterDev(PosPrinterDev.PortType portType,
java.lang.String ethernetIP,
int ethernetPort) |
限定符和类型 | 方法和说明 |
---|---|
PosPrinterDev.ReturnMessage |
Close() |
PosPrinterDev.PortInfo |
GetPortInfo() |
static java.util.List<java.lang.String> |
GetUsbPathNames(Context context) |
RoundQueue<byte[]> |
getUsbRcData() |
PosPrinterDev.ReturnMessage |
Open() |
int |
Read() |
PosPrinterDev.ReturnMessage |
Read(byte[] buffer) |
PosPrinterDev.ReturnMessage |
Read(byte[] buffer,
int offset,
int count) |
PosPrinterDev.ReturnMessage |
Write(byte[] data) |
PosPrinterDev.ReturnMessage |
Write(byte[] data,
int offset,
int count) |
PosPrinterDev.ReturnMessage |
Write(int data) |
public PosPrinterDev(PosPrinterDev.PortType portType, Context context)
public PosPrinterDev(PosPrinterDev.PortType portType, Context context, java.lang.String usbPathName)
public PosPrinterDev(PosPrinterDev.PortType portType, java.lang.String ethernetIP, int ethernetPort)
public PosPrinterDev.ReturnMessage Open()
public PosPrinterDev.ReturnMessage Write(int data)
public PosPrinterDev.ReturnMessage Write(byte[] data)
public PosPrinterDev.ReturnMessage Write(byte[] data, int offset, int count)
public PosPrinterDev.ReturnMessage Read(byte[] buffer)
public PosPrinterDev.ReturnMessage Read(byte[] buffer, int offset, int count)
public int Read()
public PosPrinterDev.ReturnMessage Close()
public static java.util.List<java.lang.String> GetUsbPathNames(Context context)
public RoundQueue<byte[]> getUsbRcData()
public PosPrinterDev.PortInfo GetPortInfo()