|
SecurePlayLibray J2SE v2.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.SecurePlay.SPUBinaryCodingClass
This class is used to serialize and deserialize SPMessageClass objects into binary encoded messages.
![]() |
![]() |
![]() |
![]() |
| Field Summary | |
(package private) static int |
BMAXMESSAGEBODYLENGTH
maximum message body length |
(package private) static int |
BMAXMESSAGEBODYPARTLENGTH
maximum message body part length |
(package private) static int |
BMAXMESSAGEBODYPARTS
maximum number of body parts |
static int |
BMAXMESSAGESLENGTH
maximum total messages length |
static int |
BMAXNAMELENGTH
number of characters lenght allowed in a name |
static int |
BMAXNUMMESSAGELENGTH
maximum number of messages |
static int |
BMAXRECEIVERCOUNT
number of receivers allowed |
static int |
BMAXRECEIVERSLENGTH
maximum total recievers length |
(package private) static int |
BMAXSIGNLENGTH
maximum signature length |
static int |
BMAXSINGLEMESSLENGTH
maximum length of one messages |
static int |
MULTIMESSAGE
|
static int |
ONEMESSAGE
tags that are used to indicate wether the message contains multiple or single message |
static int |
RELAYMESSAGE
tag used to indicate that the following two messages are doubple. |
| 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 SPMessageClass[] |
SPdeserializeDouble(byte[] mess)
Deserializes two messages for double message. |
static byte[] |
SPseralizeByteArr(java.util.Vector byteMessages)
This method serializes messages of byte arrays in to one big byte array. |
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 byte[] |
SPserializeDouble(SPMessageClass primary,
SPMessageClass alt)
Serializes two messages for double message. |
static byte[] |
SPserializesingle(SPMessageClass message)
This method takes an instance of the SPMessageClass and serializes it into a 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 |
| Field Detail |
public static final int ONEMESSAGE
public static final int MULTIMESSAGE
public static final int RELAYMESSAGE
public static final int BMAXMESSAGESLENGTH
public static final int BMAXNUMMESSAGELENGTH
public static final int BMAXSINGLEMESSLENGTH
public static final int BMAXRECEIVERCOUNT
public static final int BMAXRECEIVERSLENGTH
public static final int BMAXNAMELENGTH
static final int BMAXMESSAGEBODYPARTS
static final int BMAXMESSAGEBODYPARTLENGTH
static final int BMAXMESSAGEBODYLENGTH
static final int BMAXSIGNLENGTH
| 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 byte[] SPserializesingle(SPMessageClass message)
message - SPMessageClass - a message to be seriealized into binary 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.
public static byte[] SPserializeDouble(SPMessageClass primary,
SPMessageClass alt)
primary - SPMessageClass - primary message.alt - SPMessageClass - alternative message.
public static SPMessageClass[] SPdeserializeDouble(byte[] mess)
mess - byte[] - serialized double message.
public static byte[] SPseralizeByteArr(java.util.Vector byteMessages)
byteMessages - Vector - byte[] messages to be serialized.
|
SecurePlayLibray J2SE v2.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||