UM Java API  6.16.1
com.latencybusters.lbm.sdm.LBMSDMRawBlob Class Reference
Inheritance diagram for com.latencybusters.lbm.sdm.LBMSDMRawBlob:
com.latencybusters.lbm.sdm.LBMSDMRaw com.latencybusters.lbm.sdm.LBMSDM

Public Member Functions

 LBMSDMRawBlob (int len)
 
 LBMSDMRawBlob (byte[] b)
 
 LBMSDMRawBlob (byte[] b, int offset, int size)
 
 LBMSDMRawBlob (String s)
 
int length ()
 
byte[] get ()
 
String toString ()
 
LBMSDMRawBlob clone () throws CloneNotSupportedException
 
String toDbgString ()
 
void set_debug_level (int level)
 
void log (String s)
 

Static Public Attributes

static final int DEBUG_BASIC = 1
 
static final int DEBUG_VERBOSE_PARSING = 2
 

Protected Attributes

int debug_level = 0
 

Detailed Description

An LBMSDMRawBlob is a helper class to minimise the effort of formatting and parsing Binary Large OBjects (BLOBs)

Constructor & Destructor Documentation

com.latencybusters.lbm.sdm.LBMSDMRawBlob.LBMSDMRawBlob ( int  len)

Create a new blob with a specified length.

Parameters
lenThe length of the blob

Referenced by com.latencybusters.lbm.sdm.LBMSDMRawBlob.clone().

com.latencybusters.lbm.sdm.LBMSDMRawBlob.LBMSDMRawBlob ( byte []  b)

Create a new blob with a specified byte array.

Parameters
bThe buffer to be used for the blob
com.latencybusters.lbm.sdm.LBMSDMRawBlob.LBMSDMRawBlob ( byte []  b,
int  offset,
int  size 
)

Create a new blob from a part of an existing byte array

Parameters
bThe buffer to be used for the blob
offsetThe offset in the buffer to start copying from
sizeThe size of the block to be copied
com.latencybusters.lbm.sdm.LBMSDMRawBlob.LBMSDMRawBlob ( String  s)

Create a new blob from a string. Either a basic string can be used or a hex encoded string in the form of x"0123456789abcdef" can be used. This format means byte one will be 0x01, byte two 0x23 etc

Parameters
sThe string to be used for the blob

Member Function Documentation

byte [] com.latencybusters.lbm.sdm.LBMSDMRawBlob.get ( )
void com.latencybusters.lbm.sdm.LBMSDM.set_debug_level ( int  level)
inherited

Set the debug level for processing this SDM message. Currently all debugs go to standard out.

String com.latencybusters.lbm.sdm.LBMSDMRaw.toDbgString ( )
inherited

Get a debug string for this object. This is not expected to be called and exists for child classes.

Returns
returns null - derived classes override with their value

Referenced by com.latencybusters.lbm.sdm.LBMSDMBadRawObjectException.LBMSDMBadRawObjectException().

String com.latencybusters.lbm.sdm.LBMSDMRawBlob.toString ( )

Get the blob in a hex string format x"1234...." etc.

Returns
The hex string representing the blob

Member Data Documentation

final int com.latencybusters.lbm.sdm.LBMSDM.DEBUG_BASIC = 1
staticinherited

Debug flag for basic debug output

int com.latencybusters.lbm.sdm.LBMSDM.debug_level = 0
protectedinherited
final int com.latencybusters.lbm.sdm.LBMSDM.DEBUG_VERBOSE_PARSING = 2
staticinherited

Debug flag for verbose message parsing output


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