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 String
ATTRIBUTE_LAST
static String
ATTRIBUTE_NR
static String
ATTRIBUTE_STREAM_ID
static String
ELEMENT_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 String
getElementName()
Returns the root element name.String
getNamespace()
Returns the root element XML namespace.int
getNr()
Returns nr attribute.String
getStreamId()
Returns streamId attribute.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 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:NamedElement
Returns the root element name.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the element name.
-
getNamespace
public 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)
-
-