com.devexperts.qd.util
Class ObjectUtil

java.lang.Object
  extended by com.devexperts.qd.util.ObjectUtil

Deprecated. Use IOUtil class instead.

public class ObjectUtil
extends java.lang.Object

Utility methods for object serialization and deserialization.

Note: this class is deprecated and is replaced by IOUtil class. See IOUtil class, section Object API, and individual methods for documentation.


Method Summary
static java.lang.Object bytesToObject(byte[] b)
          Deprecated. Use IOUtil.bytesToObject(byte[]) method instead.
static java.lang.Object[] bytesToObjects(java.lang.Class[] types, byte[] bytes)
          Deprecated. Use IOUtil.bytesToObjects(Class[], byte[]) method instead.
static java.lang.Object[] bytesToObjects(java.lang.Class[] types, byte[] bytes, java.lang.ClassLoader cl)
          Deprecated. Use IOUtil.bytesToObjects(Class[], byte[], ClassLoader) method instead.
static byte[] objectsToBytes(java.lang.Class[] types, java.lang.Object... objects)
          Deprecated. Use IOUtil.objectsToBytes(java.lang.Class[], java.lang.Object...) method instead.
static byte[] objectToBytes(java.lang.Object value)
          Deprecated. Use IOUtil.objectToBytes(java.lang.Object) method instead.
static byte[] readByteArray(java.io.DataInput in)
          Deprecated. Use IOUtil.readByteArray(java.io.DataInput) method instead.
static java.lang.Object readObject(java.io.DataInput in)
          Deprecated. Use IOUtil.readObject(java.io.DataInput) method instead.
static void writeByteArray(java.io.DataOutput out, byte[] bytes)
          Deprecated. Use IOUtil.writeByteArray(java.io.DataOutput, byte[]) method instead.
static void writeObject(java.io.DataOutput out, java.lang.Object value)
          Deprecated. Use IOUtil.writeObject(java.io.DataOutput, java.lang.Object) method instead.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

objectToBytes

public static byte[] objectToBytes(java.lang.Object value)
                            throws java.io.IOException
Deprecated. Use IOUtil.objectToBytes(java.lang.Object) method instead.

Throws:
java.io.IOException

bytesToObject

public static java.lang.Object bytesToObject(byte[] b)
                                      throws java.io.IOException
Deprecated. Use IOUtil.bytesToObject(byte[]) method instead.

Throws:
java.io.IOException

objectsToBytes

public static byte[] objectsToBytes(java.lang.Class[] types,
                                    java.lang.Object... objects)
                             throws java.io.IOException
Deprecated. Use IOUtil.objectsToBytes(java.lang.Class[], java.lang.Object...) method instead.

Throws:
java.io.IOException

bytesToObjects

public static java.lang.Object[] bytesToObjects(java.lang.Class[] types,
                                                byte[] bytes)
                                         throws java.io.IOException
Deprecated. Use IOUtil.bytesToObjects(Class[], byte[]) method instead.

Throws:
java.io.IOException

bytesToObjects

public static java.lang.Object[] bytesToObjects(java.lang.Class[] types,
                                                byte[] bytes,
                                                java.lang.ClassLoader cl)
                                         throws java.io.IOException
Deprecated. Use IOUtil.bytesToObjects(Class[], byte[], ClassLoader) method instead.

Throws:
java.io.IOException

writeObject

public static void writeObject(java.io.DataOutput out,
                               java.lang.Object value)
                        throws java.io.IOException
Deprecated. Use IOUtil.writeObject(java.io.DataOutput, java.lang.Object) method instead.

Throws:
java.io.IOException

readObject

public static java.lang.Object readObject(java.io.DataInput in)
                                   throws java.io.IOException
Deprecated. Use IOUtil.readObject(java.io.DataInput) method instead.

Throws:
java.io.IOException

writeByteArray

public static void writeByteArray(java.io.DataOutput out,
                                  byte[] bytes)
                           throws java.io.IOException
Deprecated. Use IOUtil.writeByteArray(java.io.DataOutput, byte[]) method instead.

Throws:
java.io.IOException

readByteArray

public static byte[] readByteArray(java.io.DataInput in)
                            throws java.io.IOException
Deprecated. Use IOUtil.readByteArray(java.io.DataInput) method instead.

Throws:
java.io.IOException