|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ilog.server.jcomp.MvUserType | +--ilog.server.jcomp.MvMessage
This class manages the server/component communication layer. The strange prototype of encoding/decoding methods are required to ensure consistency with the C++ side.
Field Summary | |
protected static String |
NULLSTRING
|
Method Summary | |
boolean |
decodeBool()
This function extracts the next data from the message, assuming it is an int , and returns the corresponding boolean. |
boolean |
decodeBoolAsChar()
This function extracts the next data from the message, assuming it is a char ILSS * and returns the corresponding boolean. |
boolean |
decodeBoolAsUChar()
This function extracts the next data from the message, assuming it is an unsigned int , and returnd the corresponding boolean. |
char |
decodeChar()
This function extracts the next data from the message, assuming it is a |
String |
decodeCString()
This function extracts the next data from the message, assuming it is a C string. |
double |
decodeDouble()
This function extracts the next data from the message, assuming it is a double . |
float |
decodeFloat()
This function extracts the next data from the message, assuming it is a float . |
String |
decodeIlsString()
This function extracts the next string from the message, assuming it is an IlsString. |
int |
decodeInt()
This function extracts the next data in the message, assuming it is an int . |
long |
decodeLong()
This function extracts the next data from the message, assuming it is a long |
MvMessage |
decodeMessage(MvMessage msg)
This function extracts the next message from the message, assuming it is a message. |
short |
decodeShort()
This function extracts the next data from the message, assuming it is a short . |
char |
decodeUChar()
This function extracts the next data from the message, assuming it is an unsigned char . |
int |
decodeUInt()
This function extracts the next data from the message, assuming it is an unsigned int . |
long |
decodeULong()
This function extracts the next data from the message, assuming it is a long |
short |
decodeUShort()
This function extracts the next data from the message, assuming it is an unsigned short . |
protected MvMessage |
encode(MvMessage msg)
|
MvMessage |
encodeBool(boolean b)
This function appends a boolean coded as an int . |
MvMessage |
encodeBoolAsChar(boolean b)
This function appends a boolean coded as a char . |
MvMessage |
encodeBoolAsUChar(boolean b)
This function appends a boolean coded as an unsigned int . |
MvMessage |
encodeChar(char c)
This function appends a char in the message. |
MvMessage |
encodeCString(String s)
This function appends a string to the message as if it were a C string. |
MvMessage |
encodeDouble(double d)
This function appends a double to the message. |
MvMessage |
encodeFloat(float f)
This function appends a float to the message. |
MvMessage |
encodeIlsString(String s)
This function appends a string to the message as an IlsString. |
MvMessage |
encodeInt(int i)
This function appends an int to the message. |
MvMessage |
encodeLong(long l)
This function appends an int to the message as if it was a
long . |
MvMessage |
encodeMessage(MvMessage msg)
This function appends a message to the message. |
MvMessage |
encodeShort(short i)
This function appends a short to the message. |
MvMessage |
encodeUChar(char c)
This function appends a char in the message as if it was an unsigned char . |
MvMessage |
encodeUInt(int i)
This function appends an int to the message as an
unsigned int . |
MvMessage |
encodeULong(long l)
This function appends an int to the message as if it was
an unsigned long . |
MvMessage |
encodeUShort(short i)
This function appends a short to the message as if it was
an unsigned short |
boolean |
fail()
This function returns true if the message failed. |
static boolean |
isKeepNullString()
This function returns the IlsString decoding behavior. |
static void |
SetKeepNullString(boolean keepNullString)
This function sets the IlsString decoding behavior. |
Methods inherited from class ilog.server.jcomp.MvUserType |
asAny, asBoolean, asChar, asDouble, asFloat, asHRef, asLong, asObjectRef, asRef, asString, asValue, clone, duplicate, equals, stream |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static String NULLSTRING
Method Detail |
public static void SetKeepNullString(boolean keepNullString)
false, set it to true
for backward compatibility.
- Parameters:
keepNullString
- if true, a null IlsString is decoded as "null", as "" otherwise.
public static boolean isKeepNullString()
true
if a null IlsString decoded as "null",
false
if a null IlsString is decoded as "".public boolean fail()
true
if the message failed.public MvMessage encodeBool(boolean b)
int
.b
- The boolean to be written.public boolean decodeBool() throws CodingError
int
, and returns the corresponding boolean.CodingError
- An error occurred during decoding.public MvMessage encodeBoolAsChar(boolean b)
char
.b
- The boolean to be written.public boolean decodeBoolAsChar() throws CodingError
char
ILSS * and returns the corresponding boolean.CodingError
- An error occurred during decoding.public MvMessage encodeBoolAsUChar(boolean b)
unsigned int
.b
- The boolean to be written.public boolean decodeBoolAsUChar() throws CodingError
unsigned int
, and returnd the corresponding boolean.CodingError
- An error occurred during decoding.public MvMessage encodeChar(char c)
c
- The character to be written.public char decodeChar() throws CodingError
CodingError
- An error occurred during decoding.public MvMessage encodeUChar(char c)
unsigned char
.c
- The char to be written.public char decodeUChar() throws CodingError
unsigned char
.CodingError
- An error occurred during decoding.public MvMessage encodeShort(short i)
short
to the message.i
- The short
to be written.public short decodeShort() throws CodingError
short
.short
integer.CodingError
- An error occurred during decoding.public MvMessage encodeUShort(short i)
short
to the message as if it was
an unsigned short
i
- The short
to be written.public short decodeUShort() throws CodingError
unsigned short
.short
integer.CodingError
- An error occurred during decoding.public MvMessage encodeInt(int i)
int
to the message.i
- The int
to be written.public int decodeInt() throws CodingError
int
.CodingError
- An error occurred during decoding.public MvMessage encodeUInt(int i)
int
to the message as an
unsigned int
.i
- The int
to be written.public int decodeUInt() throws CodingError
unsigned int
.CodingError
- An error occurred during decoding.public MvMessage encodeLong(long l)
int
to the message as if it was a
long
.l
- The long
to be written.public long decodeLong() throws CodingError
long
long
.CodingError
- An error occurred during decoding.public MvMessage encodeULong(long l)
int
to the message as if it was
an unsigned long
.l
- The unsigned long
to be written.public long decodeULong() throws CodingError
long
long
.CodingError
- An error occurred during decoding.public MvMessage encodeFloat(float f)
float
to the message.f
- The float
to be written.public float decodeFloat() throws CodingError
float
.float
.CodingError
- An error occurred during decoding.public MvMessage encodeDouble(double d)
double
to the message.d
- The double
to be written.public double decodeDouble() throws CodingError
double
.double
.CodingError
- An error occurred during decoding.public MvMessage encodeCString(String s)
s
- The string to be written.public String decodeCString() throws CodingError
CodingError
- An error occurred during decoding.public MvMessage encodeIlsString(String s)
s
- The string to be written.public String decodeIlsString() throws CodingError
CodingError
- An error occurred during decoding.public MvMessage encodeMessage(MvMessage msg)
the
- msg message to be appendedpublic MvMessage decodeMessage(MvMessage msg) throws CodingError
CodingError
- An error occurred during decoding.protected MvMessage encode(MvMessage msg)
MvUserType
encode
in class MvUserType
ilog.server.jcomp.MvUserType
msg
- The message to which the object is streamed.MvMessage
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |