Class Base64BinaryChunk
- java.lang.Object
-
- org.jivesoftware.smackx.hoxt.packet.Base64BinaryChunk
-
- All Implemented Interfaces:
Element,ExtensionElement,FullyQualifiedElement,NamedElement,XmlLangElement
public class Base64BinaryChunk extends java.lang.Object implements ExtensionElement
Stanza extension for base64 binary chunks.This class is immutable.
- See Also:
- XEP-0332: HTTP over XMPP transport
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringATTRIBUTE_LASTstatic java.lang.StringATTRIBUTE_NRstatic java.lang.StringATTRIBUTE_STREAM_IDstatic java.lang.StringELEMENT_CHUNKstatic javax.xml.namespace.QNameQNAME
-
Constructor Summary
Constructors Constructor Description Base64BinaryChunk(java.lang.String text, java.lang.String streamId, int nr)Creates the extension.Base64BinaryChunk(java.lang.String text, java.lang.String streamId, int nr, boolean last)Creates the extension.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetElementName()Returns the root element name.java.lang.StringgetNamespace()Returns the root element XML namespace.intgetNr()Returns nr attribute.java.lang.StringgetStreamId()Returns streamId attribute.java.lang.StringgetText()Returns text attribute.booleanisLast()Returns last attribute.XmlStringBuildertoXML(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.FullyQualifiedElement
getLanguage, getQName
-
-
-
-
Field Detail
-
ELEMENT_CHUNK
public static final java.lang.String ELEMENT_CHUNK
- See Also:
- Constant Field Values
-
ATTRIBUTE_STREAM_ID
public static final java.lang.String ATTRIBUTE_STREAM_ID
- See Also:
- Constant Field Values
-
ATTRIBUTE_LAST
public static final java.lang.String ATTRIBUTE_LAST
- See Also:
- Constant Field Values
-
ATTRIBUTE_NR
public static final java.lang.String ATTRIBUTE_NR
- See Also:
- Constant Field Values
-
QNAME
public static final javax.xml.namespace.QName QNAME
-
-
Constructor Detail
-
Base64BinaryChunk
public Base64BinaryChunk(java.lang.String text, java.lang.String streamId, int nr, boolean last)
Creates the extension.- Parameters:
text- value of text attributestreamId- value of streamId attributenr- value of nr attributelast- value of last attribute
-
Base64BinaryChunk
public Base64BinaryChunk(java.lang.String text, java.lang.String streamId, int nr)
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 Detail
-
getStreamId
public java.lang.String getStreamId()
Returns streamId attribute.- Returns:
- streamId attribute
-
isLast
public boolean isLast()
Returns last attribute.- Returns:
- last attribute
-
getText
public java.lang.String getText()
Returns text attribute.- Returns:
- text attribute
-
getNr
public int getNr()
Returns nr attribute.- Returns:
- nr attribute
-
getElementName
public java.lang.String getElementName()
Description copied from interface:NamedElementReturns the root element name.- Specified by:
getElementNamein interfaceNamedElement- Returns:
- the element name.
-
getNamespace
public java.lang.String getNamespace()
Description copied from interface:FullyQualifiedElementReturns the root element XML namespace.- Specified by:
getNamespacein interfaceFullyQualifiedElement- Returns:
- the namespace.
-
toXML
public XmlStringBuilder toXML(XmlEnvironment enclosingNamespace)
-
-