|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.latencybusters.lbm.sdm.LBMSDM
com.latencybusters.lbm.sdm.LBMSDMField
com.latencybusters.lbm.sdm.LBMSDMFieldBlob
public class LBMSDMFieldBlob
Implements an SDM Field of type BLOB (Binary Large OBject)
| Field Summary | |
|---|---|
protected LBMSDMRawBlob |
internalValue
The internal data storage for this field |
| Fields inherited from class com.latencybusters.lbm.sdm.LBMSDM |
|---|
DEBUG_BASIC, debug_level, DEBUG_VERBOSE_PARSING |
| Constructor Summary | |
|---|---|
protected |
LBMSDMFieldBlob(short type,
java.lang.String name)
Constructor for array subclasses |
|
LBMSDMFieldBlob(java.lang.String name)
Constructor for an empty blob field. |
|
LBMSDMFieldBlob(java.lang.String name,
byte[] v)
Constructor for a blob field using a byte array as the blob |
|
LBMSDMFieldBlob(java.lang.String name,
LBMSDMRawBlob v)
Constructor for a blob field with a known blob |
| Method Summary | |
|---|---|
LBMSDMFieldBlob |
clone()
Get a copy of this object |
int |
format(byte[] buf,
int offset)
Format a raw blob in to a byte buffer |
protected int |
format(byte[] buf,
int offset,
LBMSDMRawBlob src)
Format a raw blob in to a byte buffer |
int |
get_len()
Get the length of formatted field |
LBMSDMRawBlob |
get()
Get the raw blob field |
int |
parse(byte[] buf,
int offset)
Parse a byte buffer and store the value |
void |
set(LBMSDMRawBlob v)
Set the raw blob. |
byte[] |
toByteArray()
Get a byte array for this blob |
java.lang.String |
toDbgString()
Get a string useful for debugging |
java.lang.String |
toString()
Get the string form of the raw blob |
| Methods inherited from class com.latencybusters.lbm.sdm.LBMSDMField |
|---|
add_element, append, format_name, format_type, get_name, getType, getType, getTypeString, internalString, isNull, length, name_len, remove, sameBaseType, sameType, set_name, set, setNull, type_len |
| Methods inherited from class com.latencybusters.lbm.sdm.LBMSDM |
|---|
log, set_debug_level |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected LBMSDMRawBlob internalValue
| Constructor Detail |
|---|
public LBMSDMFieldBlob(java.lang.String name)
name - The field name
public LBMSDMFieldBlob(java.lang.String name,
LBMSDMRawBlob v)
throws LBMSDMException
name - The field namev - The blob to be used as the field value
LBMSDMException
public LBMSDMFieldBlob(java.lang.String name,
byte[] v)
throws LBMSDMUnsignedException
name - The field namev - The byte array to be used as the blob
LBMSDMUnsignedException
protected LBMSDMFieldBlob(short type,
java.lang.String name)
type - The field type to be createdname - The name of the field to be created| Method Detail |
|---|
public LBMSDMRawBlob get()
public int get_len()
get_len in class LBMSDMField
public void set(LBMSDMRawBlob v)
throws LBMSDMException
v - The LBMSDMRawBlob object to be set - it will be copied
LBMSDMExceptionpublic java.lang.String toDbgString()
toDbgString in class LBMSDMField
protected int format(byte[] buf,
int offset,
LBMSDMRawBlob src)
throws LBMSDMException
buf - The byte buffer to have the blob formatted inoffset - The offset to begin formatting in the buffersrc - The blob to be formatted
LBMSDMInsufficientSpaceException - when the buffer doesn't have enough space
LBMSDMException - when an unexpected error occurs within LBMSDM
public int format(byte[] buf,
int offset)
throws LBMSDMException
format in class LBMSDMFieldbuf - The byte buffer to have the blob formatted inoffset - The offset to begin formatting in the buffer
LBMSDMException - when an unexpected error occurs within LBMSDMpublic java.lang.String toString()
toString in class java.lang.Object
public int parse(byte[] buf,
int offset)
throws LBMSDMException
parse in class LBMSDMFieldbuf - The byte buffer to be parsed for the bloboffset - The offset to begin parsing the buffer
LBMSDMException - parse() should be overridden
public LBMSDMFieldBlob clone()
throws java.lang.CloneNotSupportedException
clone in class LBMSDMFieldjava.lang.CloneNotSupportedExceptionpublic byte[] toByteArray()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||