|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IUtils
Contains various utility methods when handling EAI Objects.
Method Summary | |
---|---|
java.lang.Class |
classFromNativeType(int pType)
Retrieves the class corresponding to the given type. |
java.lang.Object |
deserializeObject(byte[] pBytes)
Deserializes the contents of the given byte array. |
boolean |
isNativelySerializable(java.lang.Class pObject)
Checks if the given class must be serialized for this transport layer. |
boolean |
isNativelySupported(java.lang.Class pObject)
Checks if this class is natively supported. |
boolean |
isScalar(java.lang.Class pObject)
Checks if this class is a scalar object. |
java.lang.String |
nativeNameForClass(java.lang.Class pObject)
Given a native class instance, determines the name. |
int |
nativeType(java.lang.Class pObject)
Given the class of an object returns the type associated. |
int |
nativeType(java.lang.String pTypeName)
Given the type name returns the type associated. |
int |
raccoonType(java.lang.Class pObject)
Given the class of an object returns the type associated. |
byte[] |
serializeObject(java.lang.Object pJavaBean)
Serializes the contents of the object. |
Method Detail |
---|
int nativeType(java.lang.Class pObject)
pObject
- the class of the object to identify
int raccoonType(java.lang.Class pObject)
pObject
- the class of the object to identify
java.lang.Class classFromNativeType(int pType)
pType
- the type used by the messaging layer to uniquely identify the object.
boolean isNativelySupported(java.lang.Class pObject)
pObject
- that object instance for which the test is to be undertaken.
true
if the given class is supported by the transport layer.boolean isNativelySerializable(java.lang.Class pObject)
pObject
- the class
true
if the java serialization must be applied.serializeObject(java.lang.Object)
,
deserializeObject(byte[])
byte[] serializeObject(java.lang.Object pJavaBean) throws java.io.IOException
pJavaBean
- the object that implements the serializable interface.
java.io.IOException
- if the serilization fails.java.lang.Object deserializeObject(byte[] pBytes) throws java.io.IOException
pBytes
- the serialized object
java.io.IOException
- if the deserialization fails (Class not found, ...).boolean isScalar(java.lang.Class pObject)
pObject
- the object to test.
true
if this is a scalar objectjava.lang.String nativeNameForClass(java.lang.Class pObject)
pObject
- the native class instance.
int nativeType(java.lang.String pTypeName)
pTypeName
- the type name of the object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |