| Modifier and Type | Method and Description |
|---|---|
static <T> T |
deserialize(byte[] bytes)
Deserializes the specified bytes into the object of the specified type using HA-JDBC's classloader.
|
static <T> T |
deserialize(byte[] bytes,
ClassLoader loader)
Deserializes the specified bytes into the object of the specified type.
|
static boolean |
equals(Object object1,
Object object2)
Compares two objects for equality.
|
static <T> T |
readObject(ObjectInput input)
Reads an object from the input stream using HA-JDBC's classloader.
|
static <T> T |
readObject(ObjectInput input,
ClassLoader loader)
Reads an object from the input stream using the specified classloader.
|
static byte[] |
serialize(Object object)
Serializes the specified object.
|
public static boolean equals(Object object1, Object object2)
object1 - an objectobject2 - another objectpublic static byte[] serialize(Object object)
object - the serialization targetpublic static <T> T deserialize(byte[] bytes)
bytes - a serialized objectpublic static <T> T deserialize(byte[] bytes, ClassLoader loader)
bytes - a serialized objectloader - the classloader used during deserializationpublic static <T> T readObject(ObjectInput input)
input - an input streampublic static <T> T readObject(ObjectInput input, ClassLoader loader)
input - an input streamloader - a classloaderCopyright © 2004–2014 Paul Ferraro. All rights reserved.