Exemplo n.º 1
0
  /**
   * Creates a new file send request from the given incoming file send request RV ICBM.
   *
   * @param icbm an incoming file send request RV ICBM
   */
  public FileSendReqRvCmd(RecvRvIcbm icbm) {
    super(icbm);

    TlvChain chain = getRvTlvs();

    invMessage = InvitationMessage.readInvitationMessage(chain);

    ByteBlock sendData = getServiceData();
    fileSendBlock = (sendData == null ? null : FileSendBlock.readFileSendBlock(sendData));

    connInfo = RvConnectionInfo.readConnectionInfo(chain);
  }
Exemplo n.º 2
0
 public void writeRvTlvs(OutputStream out) throws IOException {
   if (invMessage != null) invMessage.write(out);
   if (connInfo != null) connInfo.write(out);
 }