Class Base64BinaryChunk

java.lang.Object
org.jivesoftware.smackx.hoxt.packet.Base64BinaryChunk
All Implemented Interfaces:
org.jivesoftware.smack.packet.Element, org.jivesoftware.smack.packet.ExtensionElement, org.jivesoftware.smack.packet.NamedElement, org.jivesoftware.smack.packet.XmlElement, org.jivesoftware.smack.packet.XmlLangElement

public class Base64BinaryChunk extends Object implements org.jivesoftware.smack.packet.ExtensionElement
Stanza extension for base64 binary chunks.

This class is immutable.

See Also:
  • Field Details

  • Constructor Details

    • Base64BinaryChunk

      public Base64BinaryChunk(String text, String streamId, int nr, boolean last)
      Creates the extension.
      Parameters:
      text - value of text attribute
      streamId - value of streamId attribute
      nr - value of nr attribute
      last - value of last attribute
    • Base64BinaryChunk

      public Base64BinaryChunk(String text, String streamId, int nr)
      Creates the extension. Last attribute will be initialized with default value (false).
      Parameters:
      text - value of text attribute
      streamId - value of streamId attribute
      nr - value of nr attribute
  • Method Details

    • getStreamId

      public String getStreamId()
      Returns streamId attribute.
      Returns:
      streamId attribute
    • isLast

      public boolean isLast()
      Returns last attribute.
      Returns:
      last attribute
    • getText

      public String getText()
      Returns text attribute.
      Returns:
      text attribute
    • getNr

      public int getNr()
      Returns nr attribute.
      Returns:
      nr attribute
    • getElementName

      public String getElementName()
      Specified by:
      getElementName in interface org.jivesoftware.smack.packet.NamedElement
    • getNamespace

      public String getNamespace()
      Specified by:
      getNamespace in interface org.jivesoftware.smack.packet.XmlElement
    • toXML

      public org.jivesoftware.smack.util.XmlStringBuilder toXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)
      Specified by:
      toXML in interface org.jivesoftware.smack.packet.Element