public interface Buffer
Content
object representing a data buffer.Modifier and Type | Method and Description |
---|---|
byte[] |
getContent()
Get the content of the data buffer.
|
int |
getSize()
Get the size of the content of the data buffer.
|
java.lang.String |
getStringContent()
Get the string content of the data buffer.
|
java.lang.Object |
getUserData()
Gets the object stored in this object user's data
|
boolean |
isEmpty()
Tell whether the
Buffer is empty. |
Buffer |
newFromData(byte[] data,
int size)
Create a new
Buffer object from existing data. |
Buffer |
newFromString(java.lang.String data)
Create a new
Buffer object from a string. |
void |
setContent(byte[] content,
int size)
Set the content of the data buffer.
|
void |
setSize(int size)
Set the size of the content of the data buffer.
|
void |
setStringContent(java.lang.String content)
Set the string content of the data buffer.
|
void |
setUserData(java.lang.Object data)
Sets the object to store in this object user's data
|
byte[] getContent()
boolean isEmpty()
Buffer
is empty.Buffer
is empty or not.int getSize()
void setSize(int size)
size
- The size of the content of the data buffer.java.lang.String getStringContent()
void setStringContent(java.lang.String content)
content
- The string content of the data buffer.void setContent(byte[] content, int size)
size
- The size of the content of the data buffer.Buffer newFromData(byte[] data, int size)
Buffer
object from existing data.size
- The size of the initial data to stroe in the LinphoneBuffer.Buffer
object.Buffer newFromString(java.lang.String data)
Buffer
object from a string.data
- The initial string content of the LinphoneBuffer.Buffer
object.void setUserData(java.lang.Object data)
data
- the object to storejava.lang.Object getUserData()