|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ofbiz.base.util.UtilObject
public final class UtilObject
UtilObject
| Field Summary | |
|---|---|
static java.lang.String |
module
|
| Method Summary | ||
|---|---|---|
static
|
compareToHelper(java.lang.Comparable<T> o1,
T o2)
|
|
static int |
doHashCode(java.lang.Object o1)
|
|
static boolean |
equalsHelper(java.lang.Object o1,
java.lang.Object o2)
|
|
static long |
getByteCount(java.lang.Object obj)
Returns the size of a serializable object. |
|
static byte[] |
getBytes(java.io.InputStream is)
|
|
static byte[] |
getBytes(java.lang.Object obj)
Serialize an object to a byte array |
|
static java.lang.Object |
getObject(byte[] bytes)
Deserialize a byte array back to an object; if there is an error, it is logged, and null is returned. |
|
static java.lang.Object |
getObjectException(byte[] bytes)
Deserialize a byte array back to an object |
|
static
|
getObjectFromFactory(java.lang.Class<? extends Factory<R,A>> factoryInterface,
A obj)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String module
| Method Detail |
|---|
public static byte[] getBytes(java.io.InputStream is)
public static byte[] getBytes(java.lang.Object obj)
public static long getByteCount(java.lang.Object obj)
throws java.io.IOException
IOException.It is important to note that the returned value is length of the byte stream after the object has been serialized. The returned value does not represent the amount of memory the object uses. There is no accurate way to determine the size of an object in memory.
obj -
java.io.IOExceptionpublic static java.lang.Object getObject(byte[] bytes)
public static java.lang.Object getObjectException(byte[] bytes)
throws java.lang.ClassNotFoundException,
java.io.IOException
java.lang.ClassNotFoundException
java.io.IOException
public static boolean equalsHelper(java.lang.Object o1,
java.lang.Object o2)
public static <T> int compareToHelper(java.lang.Comparable<T> o1,
T o2)
public static int doHashCode(java.lang.Object o1)
public static <A,R> R getObjectFromFactory(java.lang.Class<? extends Factory<R,A>> factoryInterface,
A obj)
throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||