POSAPI
类 POSInterfaceAPI
java.lang.Object
POSAPI.POSInterfaceAPI
- 直接已知子类:
- POSBluetoothAPI, POSSerialAPI, POSUSBAPI, POSWIFIAPI
public class POSInterfaceAPI
- extends java.lang.Object
方法摘要 |
int |
CloseDevice()
|
int |
OpenDevice()
|
int |
OpenDevice(java.io.File device,
int baudrate)
|
int |
OpenDevice(java.lang.String macAddress)
|
int |
OpenDevice(java.lang.String dstName,
int dstPort)
|
int |
ReadBuffer(byte[] ReadBuffer,
int OffsetSize,
int nBytesToRead,
int ReadTimeOut)
|
int |
ReadBuffer(byte[] ReadBuffer,
int OffsetSize,
int nBytesToRead,
int ReadTimeOut,
int PortNum)
|
int |
WIFIsearchPort(SearchPortInfo[] port_info,
int printer_num_max)
|
int |
WriteBuffer(byte[] WriteBuffer,
int OffsetSize,
int nBytesToWrite,
int WriteTimeOut)
|
从类 java.lang.Object 继承的方法 |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
POS_SUCCESS
public static final int POS_SUCCESS
- 另请参见:
- 常量字段值
ERR_PROCESSING
public static final int ERR_PROCESSING
- 另请参见:
- 常量字段值
ERR_PARAM
public static final int ERR_PARAM
- 另请参见:
- 常量字段值
POSInterfaceAPI
public POSInterfaceAPI()
OpenDevice
public int OpenDevice()
OpenDevice
public int OpenDevice(java.io.File device,
int baudrate)
OpenDevice
public int OpenDevice(java.lang.String dstName,
int dstPort)
OpenDevice
public int OpenDevice(java.lang.String macAddress)
WriteBuffer
public int WriteBuffer(byte[] WriteBuffer,
int OffsetSize,
int nBytesToWrite,
int WriteTimeOut)
ReadBuffer
public int ReadBuffer(byte[] ReadBuffer,
int OffsetSize,
int nBytesToRead,
int ReadTimeOut)
ReadBuffer
public int ReadBuffer(byte[] ReadBuffer,
int OffsetSize,
int nBytesToRead,
int ReadTimeOut,
int PortNum)
WIFIsearchPort
public int WIFIsearchPort(SearchPortInfo[] port_info,
int printer_num_max)
CloseDevice
public int CloseDevice()