| Modifier and Type | Field and Description |
|---|---|
protected static java.nio.charset.Charset |
LATIN1 |
protected static byte |
LATIN1_ZERO |
| Constructor and Description |
|---|
CommandField() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
encodeCommand(int command)
This method encodes the Command.
|
int |
getValue()
This method gets the value of the Command.
|
void |
setValue(int v)
This method sets the value of the Command.
|
protected static final java.nio.charset.Charset LATIN1
protected static final byte LATIN1_ZERO
public int getValue()
Message.Command constant,
if the buffer is not null. Otherwise Message.Command.Unknown is returned
when the buffer is null.public void setValue(int v)
v - The value of the Command to be set.public static final java.lang.String encodeCommand(int command)
command - This is an integer which corresponds to a command.