Modifier and Type | Field and Description |
---|---|
protected static java.nio.charset.Charset |
LATIN1 |
protected static byte |
LATIN1_ZERO |
Constructor and Description |
---|
AckTypeField() |
Modifier and Type | Method and Description |
---|---|
static int |
decodeAckType(byte[] buffer,
int pos,
int len)
Decodes the acknowledgement type given by AMPS.
|
static java.lang.String |
encodeAckType(int ack)
Converts the acknowledgement from an integer to a string.
|
int |
getValue()
This method gets the value of the AckType.
|
void |
setValue(int v)
This method sets the value of the AckType to an integer according to
the action that has been performed on the AckType.
|
protected static final java.nio.charset.Charset LATIN1
protected static final byte LATIN1_ZERO
public int getValue()
public void setValue(int v)
v
- The value to set.public static final int decodeAckType(byte[] buffer, int pos, int len)
buffer
- An array of bytes, which is the first parameter passed
to decodeAckType.pos
- An integer which holds the position of the offset.len
- An integer which holds the length of the acknowledgement.public static final java.lang.String encodeAckType(int ack)
ack
- The integer representing the acknowledgement
produced by AMPS.