Examples of TLVOctets


Examples of org.smpp.pdu.tlv.TLVOctets

      tag = tlvHeader.removeShort();
      tlv = findOptional(optionalParameters, tag);
      if (tlv == null) {
        // ok, got extra optional parameter not defined in SMPP spec
        // will keep it as octets
        tlv = new TLVOctets(tag);
        registerExtraOptional(tlv);
      }
      length = tlvHeader.removeShort();
      tlvBuf = buffer.removeBuffer(Data.TLV_HEADER_SIZE + length);
      tlv.setData(tlvBuf);
View Full Code Here

Examples of org.smpp.pdu.tlv.TLVOctets

  /**
   * Creates new generic extra optional parameter with tag and data provided;
   * uses TLVOctets for the parameter.
   */
  public void setExtraOptional(short tag, ByteBuffer data) throws TLVException {
    TLV tlv = new TLVOctets(tag, data);
    setExtraOptional(tlv);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.