org.objectweb.jonas.common.JNDIUtils Class Reference

List of all members.

Static Public Member Functions

byte[] getBytesFromObject (Object obj)
byte[] getBytesFromObject (Object obj, Logger logger)
Object getObjectFromBytes (byte[] bytes)
Object getObjectFromBytes (byte[] bytes, Logger logger)

Detailed Description

JNDIUtils groups all commonly used methods for JNDI.
Author:
Guillaume Sauthier

Definition at line 43 of file JNDIUtils.java.


Member Function Documentation

byte [] org.objectweb.jonas.common.JNDIUtils.getBytesFromObject Object  obj,
Logger  logger
[static]
 

Return an array of byte from a given object

Parameters:
obj the object from which we must extract the bytes.
logger logger to log exceptions
Returns:
the byte[] from an object

Definition at line 65 of file JNDIUtils.java.

byte [] org.objectweb.jonas.common.JNDIUtils.getBytesFromObject Object  obj  )  [static]
 

Return an array of byte from a given object

Parameters:
obj the object from which we must extract the bytes.
Returns:
the byte[] from an object

Definition at line 55 of file JNDIUtils.java.

Object org.objectweb.jonas.common.JNDIUtils.getObjectFromBytes byte[]  bytes,
Logger  logger
[static]
 

Return an object from an array of bytes. Useful for BinaryRefAddr Useful for BinaryRefAddr

Parameters:
bytes an array of bytes
logger logger to log exceptions
Returns:
an object or null if there is an error of if it's empty

Definition at line 113 of file JNDIUtils.java.

Object org.objectweb.jonas.common.JNDIUtils.getObjectFromBytes byte[]  bytes  )  [static]
 

Return an object from an array of bytes. Useful for BinaryRefAddr Useful for BinaryRefAddr

Parameters:
bytes an array of bytes
Returns:
an object or null if there is an error of if it's empty

Definition at line 102 of file JNDIUtils.java.


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:06:26 2005 for JOnAS by  doxygen 1.3.9.1