|
|||||||||
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.LBMSDMRaw
com.latencybusters.lbm.sdm.LBMSDMRawBlob
public class LBMSDMRawBlob
An LBMSDMRawBlob is a helper class to minimise the effort of formatting and parsing Binary Large OBjects (BLOBs)
Field Summary |
---|
Fields inherited from class com.latencybusters.lbm.sdm.LBMSDM |
---|
DEBUG_BASIC, debug_level, DEBUG_VERBOSE_PARSING |
Constructor Summary | |
---|---|
LBMSDMRawBlob(byte[] b)
Create a new blob with a specified byte array. |
|
LBMSDMRawBlob(byte[] b,
int offset,
int size)
Create a new blob from a part of an existing byte array |
|
LBMSDMRawBlob(int len)
Create a new blob with a specified length. |
|
LBMSDMRawBlob(java.lang.String s)
Create a new blob from a string. |
Method Summary | |
---|---|
LBMSDMRawBlob |
clone()
Get a copy of this blob |
byte[] |
get()
Get the blob byte array |
int |
length()
Get the length of the blob |
java.lang.String |
toString()
Get the blob in a hex string format x"1234...." etc. |
Methods inherited from class com.latencybusters.lbm.sdm.LBMSDMRaw |
---|
toDbgString |
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 |
Constructor Detail |
---|
public LBMSDMRawBlob(int len)
len
- The length of the blobpublic LBMSDMRawBlob(byte[] b)
b
- The buffer to be used for the blobpublic LBMSDMRawBlob(byte[] b, int offset, int size)
b
- The buffer to be used for the bloboffset
- The offset in the buffer to start copying fromsize
- The size of the block to be copiedpublic LBMSDMRawBlob(java.lang.String s)
s
- The string to be used for the blobMethod Detail |
---|
public int length()
public byte[] get()
public java.lang.String toString()
toString
in class java.lang.Object
public LBMSDMRawBlob clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |