Class Base64BinaryChunk
java.lang.Object
org.jivesoftware.smackx.hoxt.packet.Base64BinaryChunk
- All Implemented Interfaces:
Element
,ExtensionElement
,NamedElement
,XmlElement
,XmlLangElement
Stanza extension for base64 binary chunks.
This class is immutable.
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionBase64BinaryChunk
(String text, String streamId, int nr) Creates the extension.Base64BinaryChunk
(String text, String streamId, int nr, boolean last) Creates the extension. -
Method Summary
Modifier and TypeMethodDescriptionReturns the root element name.Returns the root element XML namespace.int
getNr()
Returns nr attribute.Returns streamId attribute.getText()
Returns text attribute.boolean
isLast()
Returns last attribute.toXML
(XmlEnvironment enclosingNamespace) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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
Returns last attribute.- Returns:
- last attribute
-
getText
Returns text attribute.- Returns:
- text attribute
-
getNr
Returns nr attribute.- Returns:
- nr attribute
-
getElementName
Description copied from interface:NamedElement
Returns the root element name.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the element name.
-
getNamespace
Description copied from interface:XmlElement
Returns the root element XML namespace.- Specified by:
getNamespace
in interfaceXmlElement
- Returns:
- the namespace.
-
toXML
-