public class CommandUtils
extends java.lang.Object
| Constructor and Description |
|---|
CommandUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isCustomCommand(Command command)
Verifies if the given command is custom command or it is some of the
mPRM defined commands.
|
static java.lang.String |
makeScriptString(char[] from)
Arranges the given parameter in a regular string representation
respecting to the script grammar.
|
static java.lang.String |
makeScriptString(java.lang.String val)
Arranges the given parameter in a regular string representation
respecting to the script grammar.
|
static Command |
readCommand(java.io.DataInputStream in)
Reads command from an input stream.
|
static void |
writeCommand(java.io.DataOutputStream out,
Command command)
Writes a command to given output stream.
|
public static boolean isCustomCommand(Command command)
command - commandtrue if the given command is custom command, false otherwise.public static void writeCommand(java.io.DataOutputStream out,
Command command)
throws java.lang.Exception
out - output streamcommand - commandjava.lang.Exception - if error occurs.public static Command readCommand(java.io.DataInputStream in) throws java.lang.Exception
in - input stream.java.lang.Exception - if error occurs.public static java.lang.String makeScriptString(java.lang.String val)
val - valuepublic static java.lang.String makeScriptString(char[] from)
from - valueCopyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.