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.String
ATTRIBUTE_LAST
static java.lang.String
ATTRIBUTE_NR
static java.lang.String
ATTRIBUTE_STREAM_ID
static java.lang.String
ELEMENT_CHUNK
static javax.xml.namespace.QName
QNAME
-
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.String
getElementName()
Returns the root element name.java.lang.String
getNamespace()
Returns the root element XML namespace.int
getNr()
Returns nr attribute.java.lang.String
getStreamId()
Returns streamId attribute.java.lang.String
getText()
Returns text attribute.boolean
isLast()
Returns last attribute.XmlStringBuilder
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.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:NamedElement
Returns the root element name.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the element name.
-
getNamespace
public java.lang.String getNamespace()
Description copied from interface:FullyQualifiedElement
Returns the root element XML namespace.- Specified by:
getNamespace
in interfaceFullyQualifiedElement
- Returns:
- the namespace.
-
toXML
public XmlStringBuilder toXML(XmlEnvironment enclosingNamespace)
-
-