|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectaa.util.ObjectHandler
This class includes some useful functions to handle an object or objects.
History:
Constructor Summary | |
ObjectHandler()
|
Method Summary | |
static java.lang.Object |
deepCopy(java.lang.Object p_objOld)
Makes a deep copy of the specified object. |
static java.lang.Object[] |
deepCopy(java.lang.Object[] p_objaOld)
Makes a deep copy of the specified array of objects. |
static java.lang.Object |
deserialize(byte[] p_baStream)
Deserialize a byte stream into an object. |
static byte[] |
serialize(java.io.Serializable p_serObj)
Serializes an object into a byte stream. |
static java.lang.String |
toStringArgs(java.lang.Object[] p_objaArgs)
Converts the specified array of objects into a string representation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ObjectHandler()
Method Detail |
public static java.lang.Object deepCopy(java.lang.Object p_objOld)
p_objOld
- an input object to be copied.
null
if the given object is null.public static java.lang.Object[] deepCopy(java.lang.Object[] p_objaOld)
p_objaOld
- an input array of objects to be copied.
null
if the given parameter is null.public static byte[] serialize(java.io.Serializable p_serObj) throws java.io.IOException
p_serObj
- the input serializable object.
java.io.IOException
- any of the usual iput/output exception.public static java.lang.Object deserialize(byte[] p_baStream) throws java.io.IOException, java.lang.ClassNotFoundException
p_baStream
- the input byte stream of an object of the class.
java.io.IOException
- any of the usual iput/output exception.
java.lang.ClassNotFoundException
- if class of a serialized object cannot be found.public static java.lang.String toStringArgs(java.lang.Object[] p_objaArgs)
p_objaArgs
- an object array to be handled.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |