Class Base64BinaryChunk
- java.lang.Object
-
- org.jivesoftware.smackx.hoxt.packet.Base64BinaryChunk
-
- All Implemented Interfaces:
Element,ExtensionElement,FullyQualifiedElement,NamedElement,XmlLangElement
public class Base64BinaryChunk extends 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 StringATTRIBUTE_LASTstatic StringATTRIBUTE_NRstatic StringATTRIBUTE_STREAM_IDstatic StringELEMENT_CHUNK
-
Constructor Summary
Constructors Constructor Description Base64BinaryChunk(String text, String streamId, int nr)Creates the extension.Base64BinaryChunk(String text, String streamId, int nr, boolean last)Creates the extension.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetElementName()Returns the root element name.StringgetNamespace()Returns the root element XML namespace.intgetNr()Returns nr attribute.StringgetStreamId()Returns streamId attribute.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 String ELEMENT_CHUNK
- See Also:
- Constant Field Values
-
ATTRIBUTE_STREAM_ID
public static final String ATTRIBUTE_STREAM_ID
- See Also:
- Constant Field Values
-
ATTRIBUTE_LAST
public static final String ATTRIBUTE_LAST
- See Also:
- Constant Field Values
-
ATTRIBUTE_NR
public static final String ATTRIBUTE_NR
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Base64BinaryChunk
public Base64BinaryChunk(String text, 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(String text, 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 String getStreamId()
Returns streamId attribute.- Returns:
- streamId attribute
-
isLast
public boolean isLast()
Returns last attribute.- Returns:
- last attribute
-
getNr
public int getNr()
Returns nr attribute.- Returns:
- nr attribute
-
getElementName
public String getElementName()
Description copied from interface:NamedElementReturns the root element name.- Specified by:
getElementNamein interfaceNamedElement- Returns:
- the element name.
-
getNamespace
public 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)
-
-