public class Base64BinaryChunk extends Object implements PacketExtension
This class is immutable.
Modifier and Type | Field and Description |
---|---|
static String |
ATTRIBUTE_LAST |
static String |
ATTRIBUTE_STREAM_ID |
static String |
ELEMENT_CHUNK |
Constructor and Description |
---|
Base64BinaryChunk(String text,
String streamId)
Creates the extension.
|
Base64BinaryChunk(String text,
String streamId,
boolean last)
Creates the extension.
|
Modifier and Type | Method and Description |
---|---|
String |
getElementName()
Returns the root element name.
|
String |
getNamespace()
Returns the root element XML namespace.
|
String |
getStreamId()
Returns streamId attribute.
|
String |
getText()
Returns text attribute.
|
boolean |
isLast()
Returns last attribute.
|
String |
toXML()
Returns the XML representation of the PacketExtension.
|
public static final String ELEMENT_CHUNK
public static final String ATTRIBUTE_STREAM_ID
public static final String ATTRIBUTE_LAST
public Base64BinaryChunk(String text, String streamId, boolean last)
text
- value of text attributestreamId
- value of streamId attributelast
- value of last attributepublic Base64BinaryChunk(String text, String streamId)
text
- value of text attributestreamId
- value of streamId attributepublic String getStreamId()
public boolean isLast()
public String getElementName()
PacketExtension
getElementName
in interface PacketExtension
public String getNamespace()
PacketExtension
getNamespace
in interface PacketExtension
public String toXML()
PacketExtension
toXML
in interface PacketExtension