Collection of utility functions. More...
Classes | |
| class | ArgumentException |
| Exception thrown when invalid message arguments are detected. More... | |
Static Public Member Functions | |
| static boolean | addBinaryArg (MessagePackage message, int position, byte[] arg) |
| Adds a binary argument to a message. | |
| static boolean | addBinaryVectorArg (MessagePackage message, int position, Vector< byte[]> arg) |
| Adds a binary vector argument to message. | |
| static boolean | addBooleanArg (MessagePackage message, int position, boolean arg) |
| Adds a boolean argument to a message. | |
| static boolean | addBooleanVectorArg (MessagePackage message, int position, Vector< Boolean > arg) |
| Adds a boolean vector argument to message. | |
| static boolean | addFloatArg (MessagePackage message, int position, float arg) |
| Adds a Float argument to a message. | |
| static boolean | addFloatVectorArg (MessagePackage message, int position, Vector< Float > arg) |
| Adds a float vector argument to message. | |
| static boolean | addIntArg (MessagePackage message, int position, int arg) |
| Adds a integer argument to a message. | |
| static boolean | addIntVectorArg (MessagePackage message, int position, Vector< Integer > arg) |
| Adds a int vector argument to message. | |
| static boolean | addPackageArg (MessagePackage message, int position, MessagePackage arg) |
| Adds a package argument to a message. | |
| static boolean | addPackageVectorArg (MessagePackage message, int position, Vector< MessagePackage > arg) |
| Adds a package vector argument to message. | |
| static boolean | addStringArg (MessagePackage message, int position, String arg) |
| Adds a string argument to a message. | |
| static boolean | addStringVectorArg (MessagePackage message, int position, Vector< String > arg) |
| Adds a string vector argument to message. | |
| static String | eventNameToMessageName (String servicePrefix, String eventName) |
| Mangles event name to a message name transferred on wire. | |
| static byte[] | getBinaryArg (MessagePackage message, int position) throws MessageUtil.ArgumentException |
| Retrieve binary argument. | |
| static Vector< byte[]> | getBinaryVectorArg (MessagePackage message, int position) throws MessageUtil.ArgumentException |
| Retrieve binary vector argument. | |
| static boolean | getBooleanArg (MessagePackage message, int position) throws MessageUtil.ArgumentException |
| Retrieve boolean argument. | |
| static Vector< Boolean > | getBooleanVectorArg (MessagePackage message, int position) throws MessageUtil.ArgumentException |
| Retrieve boolean vector argument. | |
| static float | getFloatArg (MessagePackage message, int position) throws MessageUtil.ArgumentException |
| Retrieve float argument. | |
| static Vector< Float > | getFloatVectorArg (MessagePackage message, int position) throws MessageUtil.ArgumentException |
| Retrieve float vector argument. | |
| static int | getIntArg (MessagePackage message, int position) throws MessageUtil.ArgumentException |
| Retrieve int argument. | |
| static Vector< Integer > | getIntVectorArg (MessagePackage message, int position) throws MessageUtil.ArgumentException |
| Retrieve int vector argument. | |
| static MessagePackage | getPackageArg (MessagePackage message, int position) throws MessageUtil.ArgumentException |
| Retrieve package argument. | |
| static Vector< MessagePackage > | getPackageVectorArg (MessagePackage message, int position) throws MessageUtil.ArgumentException |
| Retrieve package vector argument. | |
| static String | getStringArg (MessagePackage message, int position) throws MessageUtil.ArgumentException |
| Retrieve string argument. | |
| static Vector< String > | getStringVectorArg (MessagePackage message, int position) throws MessageUtil.ArgumentException |
| Retrieve string vector argument. | |
| static String | methodNameToMessageName (String servicePrefix, String methodName) |
| Mangles method name to a message name to be transfered on wire. | |
| static String | writepropertyMethodNameToMessageName (String servicePrefix, String methodName) |
| Mangles a method name used to modify writable runtime data properties. | |
Collection of utility functions.
|
static |
Adds a binary argument to a message.
| message | where to add the argument |
| position | position to add the argument |
| arg | the value |
|
static |
Adds a binary vector argument to message.
| message | where to add the vector argument |
| position | position to add the argument |
| arg | the vector to add |
|
static |
Adds a boolean argument to a message.
| message | where to add the argument |
| position | position to add the argument |
| arg | the value |
|
static |
Adds a boolean vector argument to message.
| message | where to add the vector argument |
| position | position to add the argument |
| arg | the vector to add |
|
static |
Adds a Float argument to a message.
| message | where to add the argument |
| position | position to add the argument |
| arg | the value |
|
static |
Adds a float vector argument to message.
| message | where to add the vector argument |
| position | position to add the argument |
| arg | the vector to add |
|
static |
Adds a integer argument to a message.
| message | where to add the argument |
| position | position to add the argument |
| arg | the value |
|
static |
Adds a int vector argument to message.
| message | where to add the vector argument |
| position | position to add the argument |
| arg | the vector to add |
|
static |
Adds a package argument to a message.
| message | where to add the argument |
| position | position to add the argument |
| arg | the value |
|
static |
Adds a package vector argument to message.
| message | where to add the vector argument |
| position | position to add the argument |
| arg | the vector to add |
|
static |
Adds a string argument to a message.
| message | where to add the argument |
| position | position to add the argument |
| arg | the value |
|
static |
Adds a string vector argument to message.
| message | where to add the vector argument |
| position | position to add the argument |
| arg | the vector to add |
|
static |
Mangles event name to a message name transferred on wire.
| servicePrefix | Service name prefix, E.g. Media |
| eventName | name of the event, E.g. progress |
|
static |
Retrieve binary argument.
| message | where to retrieve the value from |
| position | position where to retrieve the value |
| MessageUtil.ArgumentException | if argument type does not match |
|
static |
Retrieve binary vector argument.
| message | where to retrieve the vector from |
| position | position where to retrieve the vector |
| MessageUtil.ArgumentException | if argument type does not match |
|
static |
Retrieve boolean argument.
| message | where to retrieve the value from |
| position | position where to retrieve the value |
| MessageUtil.ArgumentException | if argument type does not match |
|
static |
Retrieve boolean vector argument.
| message | where to retrieve the vector from |
| position | position where to retrieve the vector |
| MessageUtil.ArgumentException | if argument type does not match |
|
static |
Retrieve float argument.
| message | where to retrieve the value from |
| position | position where to retrieve the value |
| MessageUtil.ArgumentException | if argument type does not match |
|
static |
Retrieve float vector argument.
| message | where to retrieve the vector from |
| position | position where to retrieve the vector |
| MessageUtil.ArgumentException | if argument type does not match |
|
static |
Retrieve int argument.
| message | where to retrieve the value from |
| position | position where to retrieve the value |
| MessageUtil.ArgumentException | if argument type does not match |
|
static |
Retrieve int vector argument.
| message | where to retrieve the vector from |
| position | position where to retrieve the vector |
| MessageUtil.ArgumentException | if argument type does not match |
|
static |
Retrieve package argument.
| message | where to retrieve the value from |
| position | position where to retrieve the value |
| MessageUtil.ArgumentException | if argument type does not match |
|
static |
Retrieve package vector argument.
| message | where to retrieve the vector from |
| position | position where to retrieve the vector |
| MessageUtil.ArgumentException | if argument type does not match |
|
static |
Retrieve string argument.
| message | where to retrieve the value from |
| position | position where to retrieve the value |
| MessageUtil.ArgumentException | if argument type does not match |
|
static |
Retrieve string vector argument.
| message | where to retrieve the vector from |
| position | position where to retrieve the vector |
| MessageUtil.ArgumentException | if argument type does not match |
|
static |
Mangles method name to a message name to be transfered on wire.
| servicePrefix | Service name, e.g. "Media" |
| methodName | Name of the method to mangle, e.g. "playTrack" |
|
static |
Mangles a method name used to modify writable runtime data properties.
| servicePrefix | The service prefix. |
| methodName | name of the method. |