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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBase64BinaryChunk(String text, String streamId, int nr) Creates the extension.Base64BinaryChunk(String text, String streamId, int nr, boolean last) Creates the extension. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jivesoftware.smack.packet.Element
toXML, toXMLMethods inherited from interface org.jivesoftware.smack.packet.XmlElement
getLanguage, getQName
-
Field Details
-
ELEMENT_CHUNK
- See Also:
-
ATTRIBUTE_STREAM_ID
- See Also:
-
ATTRIBUTE_LAST
- See Also:
-
ATTRIBUTE_NR
- See Also:
-
QNAME
-
-
Constructor Details
-
Base64BinaryChunk
Creates the extension.- Parameters:
text- value of text attributestreamId- value of streamId attributenr- value of nr attributelast- value of last attribute
-
Base64BinaryChunk
Creates the extension. Last attribute will be initialized with default value (false).- Parameters:
text- value of text attributestreamId- value of streamId attributenr- value of nr attribute
-
-
Method Details
-
getStreamId
Returns streamId attribute.- Returns:
- streamId attribute
-
isLast
public boolean isLast()Returns last attribute.- Returns:
- last attribute
-
getText
Returns text attribute.- Returns:
- text attribute
-
getNr
public int getNr()Returns nr attribute.- Returns:
- nr attribute
-
getElementName
- Specified by:
getElementNamein interfaceorg.jivesoftware.smack.packet.NamedElement
-
getNamespace
- Specified by:
getNamespacein interfaceorg.jivesoftware.smack.packet.XmlElement
-
toXML
public org.jivesoftware.smack.util.XmlStringBuilder toXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace) - Specified by:
toXMLin interfaceorg.jivesoftware.smack.packet.Element
-