POSAPI
类 POSInterfaceAPI

java.lang.Object
  继承者 POSAPI.POSInterfaceAPI
直接已知子类:
POSBluetoothAPI, POSSerialAPI, POSUSBAPI, POSWIFIAPI

public class POSInterfaceAPI
extends java.lang.Object


字段摘要
static int ERR_PARAM
           
static int ERR_PROCESSING
           
static int POS_SUCCESS
           
 
构造方法摘要
POSInterfaceAPI()
           
 
方法摘要
 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()