コード例 #1
0
  public int getHandShake() throws ACBrException {

    int ret = ACBrDeviceInterop.INSTANCE.DEV_GetHandShake(getHandle());
    checkResult(ret);

    return ret;
  }
コード例 #2
0
  public boolean getProcessMessages() throws ACBrException {

    int ret = ACBrDeviceInterop.INSTANCE.DEV_GetProcessMessages(getHandle());
    checkResult(ret);

    return ret != 0;
  }
コード例 #3
0
  public String getPorta() throws ACBrException {

    ByteBuffer returnBuffer = ByteBuffer.allocate(STR_BUFFER_LEN);
    int ret = ACBrDeviceInterop.INSTANCE.DEV_GetPorta(getHandle(), returnBuffer, STR_BUFFER_LEN);
    checkResult(ret);

    return fromUTF8(returnBuffer, ret);
  }
コード例 #4
0
  public void setHandShake(int value) throws ACBrException {

    int ret = ACBrDeviceInterop.INSTANCE.DEV_SetHandShake(getHandle(), value);
    checkResult(ret);
  }
コード例 #5
0
  public void setPorta(String value) throws ACBrException {

    int ret = ACBrDeviceInterop.INSTANCE.DEV_SetPorta(getHandle(), toUTF8(value));
    checkResult(ret);
  }
コード例 #6
0
  public void setProcessMessages(boolean value) throws ACBrException {

    int ret = ACBrDeviceInterop.INSTANCE.DEV_SetProcessMessages(getHandle(), value);
    checkResult(ret);
  }