UM Java API 6.17.1

- Main Page
- Related Pages
- Classes

- Class List
- Class Hierarchy
- Class Members

Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
com.latencybusters.lbm.LBMSerializedResponse Class Reference

## Public Member Functions
byte[] | getBytes ()
void | copyBytes (byte[] src, int srcPos)

## Static Public Attributes
static final int | SERIAL_RESPONSE_LENGTH = 32

## Protected Member Functions
boolean | isPopulated ()
void | setPopulated (boolean value)

## Detailed Description

LBM SerializedResponse class. This class should be created and and then passed to the LBMMessage getSerializedResponse method so that it can be populated with the serialized data that can then be used by another application to send the response by using the LBMContext respond method.

See also
  LBMMessage::getSerializedResponse
  LBMContext::respond

## Member Function Documentation

void com.latencybusters.lbm.LBMSerializedResponse.copyBytes | ( | byte[] | src,
|  | int | srcPos
| ) |  |

Copies a byte[] containing serialized response information into this object so that it can be used by the LBMContext respond method. It will copy a length of LBMSerializedResponse.SERIAL_RESPONSE_LENGTH from the src parameter starting at the srcPos.

See also
  LBMContext::respond

Parameters

  src | The source byte[] containing the serialized response information as binary data to load into this object
  srcPos | The starting offset in the source byte[] which is normally 0

byte [] com.latencybusters.lbm.LBMSerializedResponse.getBytes | ( |  | ) |

Gets the bytes representing the serialized response information which can be sent to and used by another application.

Returns
  byte[] the serialized response information as binary data

The documentation for this class was generated from the following file:

- LBMSerializedResponse.java