|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.SecurePlay.SPUBinaryCoding.SPUBinaryCodingClass
This class is used to serialize and deserialize SPMessageClass objects into binary encoded messages.
![]() |
![]() |
| Constructor Summary | |
SPUBinaryCodingClass()
|
|
| Method Summary | |
static SPMessageClass[] |
addMessArrEl(SPMessageClass[] messes,
SPMessageClass mess)
This is a private method used only in multiple message deserialization method. |
static java.lang.String[] |
decodeStringArr(byte[] btArr,
int MAXEntryLength,
int MAXnumElem,
int MAXarrLen)
This method deserializes a string array form byte array. |
static byte[] |
encodeStringArr(java.lang.String[] strArr,
int MAXElemLength,
int MAXnumElem,
int MAXarrLen)
This method is used to serialize a string array into byte array. |
static SPMessageClass[] |
SPdeserialize(byte[] mess)
This method deserializes multiple messages from binary to Message ojects. |
static byte[] |
SPserialize(SPMessageClass message)
|
static byte[] |
SPserialize(SPMessageClass[] messages)
This method takes several instances of the SPMessageClass and serializes it into byte array. |
static SPMessageClass |
SPsingledeserialize(byte[] mess)
This method takes a single serialized message and turns it into an instance of the SPMessageClass |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SPUBinaryCodingClass()
| Method Detail |
public static byte[] SPserialize(SPMessageClass message)
public static byte[] SPserialize(SPMessageClass[] messages)
messages - SPMessageClass[] - a message to be seriealized into byte array
public static SPMessageClass[] SPdeserialize(byte[] mess)
mess - byte[] - byte array that contains the messages.
public static SPMessageClass SPsingledeserialize(byte[] mess)
mess - byte[] - serialized message object
public static byte[] encodeStringArr(java.lang.String[] strArr,
int MAXElemLength,
int MAXnumElem,
int MAXarrLen)
strArr - String[] - the string array to be seralized
public static java.lang.String[] decodeStringArr(byte[] btArr,
int MAXEntryLength,
int MAXnumElem,
int MAXarrLen)
btArr - byte[] - byte array to be deserialized.
public static SPMessageClass[] addMessArrEl(SPMessageClass[] messes,
SPMessageClass mess)
messes - SPAbstractMessage[] - the array to which the new message will be added.mess - SPMessageClass - the message class to be added.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||