| java.lang.Object org.objectweb.jonas.common.JNDIUtils
JNDIUtils | public class JNDIUtils (Code) | | JNDIUtils groups all commonly used methods for JNDI.
author: Guillaume Sauthier |
getBytesFromObject | public static byte[] getBytesFromObject(Object obj)(Code) | | Return an array of byte from a given object
Parameters: obj - the object from which we must extract the bytes. the byte[] from an object |
getBytesFromObject | public static byte[] getBytesFromObject(Object obj, Logger logger)(Code) | | Return an array of byte from a given object
Parameters: obj - the object from which we must extract the bytes. Parameters: logger - logger to log exceptions the byte[] from an object |
getObjectFromBytes | public static Object getObjectFromBytes(byte[] bytes)(Code) | | Return an object from an array of bytes. Useful for BinaryRefAddr
Useful for BinaryRefAddr
Parameters: bytes - an array of bytes an object or null if there is an error of if it's empty |
getObjectFromBytes | public static Object getObjectFromBytes(byte[] bytes, Logger logger)(Code) | | Return an object from an array of bytes. Useful for BinaryRefAddr
Useful for BinaryRefAddr
Parameters: bytes - an array of bytes Parameters: logger - logger to log exceptions an object or null if there is an error of if it's empty |
|
|