Class DataPacketExtension

java.lang.Object
org.jivesoftware.smackx.bytestreams.ibb.packet.DataPacketExtension
All Implemented Interfaces:
Element, ExtensionElement, NamedElement, XmlElement, XmlLangElement

public class DataPacketExtension extends Object implements ExtensionElement
Represents a chunk of data of an In-Band Bytestream within an IQ stanza or a message stanza.
  • Field Details

  • Constructor Details

    • DataPacketExtension

      public DataPacketExtension(String sessionID, int seq, String data)
      Creates a new In-Band Bytestream data packet.
      Parameters:
      sessionID - unique session ID identifying this In-Band Bytestream
      seq - sequence of this stanza in regard to the other data packets
      data - the base64 encoded data contained in this packet
      Throws:
      IllegalArgumentException - if seq is not within the range [0, 65535].
    • DataPacketExtension

      public DataPacketExtension(String sessionID, UInt16 seq, String data)
      Creates a new In-Band Bytestream data packet.
      Parameters:
      sessionID - unique session ID identifying this In-Band Bytestream
      seq - sequence of this stanza in regard to the other data packets
      data - the base64 encoded data contained in this packet
  • Method Details