public interface LinphoneContent
Modifier and Type | Method and Description |
---|---|
byte[] |
getData()
Get the data as a byte array.
|
String |
getDataAsString()
Get the data as a string.
|
String |
getEncoding()
Get the encoding applied to the data, can be null if no encoding.
|
int |
getExpectedSize()
Get the expected data size.
|
String |
getName() |
int |
getRealSize()
Return the size of the data field
|
String |
getSubtype()
Get the subtype of the content, for example "html"
|
String |
getType()
Get the type of the content, for example "application"
|
void |
setData(byte[] data)
Set the data, as a byte buffer.
|
void |
setEncoding(String encoding)
Set the encoding applied to the data, can be null if no encoding.
|
void |
setExpectedSize(int size)
Sets the expected data size
|
void |
setName(String name) |
void |
setStringData(String data)
Set the data, supplied as String.
|
void |
setSubtype(String subtype)
Set the subtype, for example "text"
|
void |
setType(String type)
Set the content type, for example "application"
|
String getType()
String getSubtype()
String getEncoding()
String getDataAsString()
byte[] getData()
int getExpectedSize()
void setExpectedSize(int size)
int getRealSize()
void setType(String type)
type
- the content's primary typevoid setSubtype(String subtype)
subtype
- the subtypevoid setEncoding(String encoding)
void setStringData(String data)
data
- the datavoid setData(byte[] data)
void setName(String name)
String getName()