public class OscString extends Object implements OscArgument
| Constructor and Description |
|---|
OscString(char[] value) |
OscString(String value) |
| Modifier and Type | Method and Description |
|---|---|
int |
getByteLength()
Gets the number of bytes used by this argument uses in its encoded representation.
|
char |
getTypeTag()
Returns the type tag used to encode this argument
|
String |
getValue() |
static OscString |
parse(byte[] data,
int offset,
int len) |
void |
serialize(ByteBuffer buffer)
Serializes this argument to a buffer
|
OscString |
setValue(String value) |
boolean |
toBoolean() |
double |
toDouble() |
float |
toFloat() |
int |
toInt()
Gets an integer value of this argument
|
String |
toString() |
public OscString(char[] value)
public OscString(String value)
public String getValue()
public int getByteLength()
OscArgumentgetByteLength in interface OscArgumentpublic static OscString parse(byte[] data, int offset, int len) throws OscException
OscExceptionpublic char getTypeTag()
OscArgumentgetTypeTag in interface OscArgumentpublic void serialize(ByteBuffer buffer)
OscArgumentserialize in interface OscArgumentbuffer - ByteByffer to write topublic int toInt()
OscArgumenttoInt in interface OscArgumentpublic float toFloat()
toFloat in interface OscArgumentpublic double toDouble()
toDouble in interface OscArgumentpublic boolean toBoolean()
toBoolean in interface OscArgumentLX library by Mark C. Slee. © 2012-2020