|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectraccoon.tibco.tibrv.utils.RvUtils
public class RvUtils
The implementation of the IUtils interface for TIB/Rendezvous
| Constructor Summary | |
|---|---|
RvUtils()
Default constructor does nothing. |
|
| Method Summary | |
|---|---|
java.lang.Class |
classFromNativeType(int pType)
Retrieves the class corresponding to the given type. |
static java.lang.String |
convertTibrvException(com.tibco.tibrv.TibrvException pTibrvException)
Converts the TIB/Rendezvous exception into a normalized error string |
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. |
static java.lang.String |
knownName(int pKnownType)
Given the known type retruns the known name. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RvUtils()
| Method Detail |
|---|
public static java.lang.String knownName(int pKnownType)
pKnownType - the known type, a value of KNOWN_TYPES
public int nativeType(java.lang.Class pObject)
nativeType in interface IUtilspObject - the class of the object to identify
public int raccoonType(java.lang.Class pObject)
raccoonType in interface IUtilspObject - the class of the object to identify
public java.lang.Class classFromNativeType(int pType)
classFromNativeType in interface IUtilspType - the type used by the messaging layer to uniquely identify the object.
public boolean isNativelySupported(java.lang.Class pObject)
isNativelySupported in interface IUtilspObject - the object for which the native support is desired.
true if the given class is supported by the transport layer.public boolean isScalar(java.lang.Class pObject)
isScalar in interface IUtilspObject - the object for which the native support is desired.
true if the given class is supported by the transport layer.public boolean isNativelySerializable(java.lang.Class pObject)
isNativelySerializable in interface IUtilspObject - the class
true if the java serialization must be applied.serializeObject(java.lang.Object),
deserializeObject(byte[])
public byte[] serializeObject(java.lang.Object pJavaBean)
throws java.io.IOException
serializeObject in interface IUtilspJavaBean - the object that implements the serializable interface.
java.io.IOException - if the serialization fails.
public java.lang.Object deserializeObject(byte[] pBytes)
throws java.io.IOException
deserializeObject in interface IUtilspBytes - the serialized object
java.io.IOException - if the deserialization fails.public java.lang.String nativeNameForClass(java.lang.Class pObject)
nativeNameForClass in interface IUtilspObject - the native class instance.
public int nativeType(java.lang.String pTypeName)
nativeType in interface IUtilspTypeName - the type name of the object
public static java.lang.String convertTibrvException(com.tibco.tibrv.TibrvException pTibrvException)
pTibrvException - the exception that TIB/Rendezvous raised
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||