Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.ode.utils
Class SerializableUtils

    java.lang.Object
      org.apache.ode.utils.SerializableUtils

    public class SerializableUtils

extends java.lang.Object

Utitlity methods for `Serializable` objects.

Constructor Summary
`SerializableUtils()`

Method Summary
`static java.lang.Object` | `cloneSerializable(java.lang.Object obj)` Clone a `Serializable` object; for use when a `clone()` method is not available.
`static byte[]` | `toBytes(java.lang.Object obj)`
`static java.lang.Object` | `toObject(byte[] arr, java.lang.ClassLoader cl)`
`static java.lang.Object` | `toObject(java.io.InputStream binaryStream, java.lang.ClassLoader cl)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### SerializableUtils

    public SerializableUtils()

Method Detail

### cloneSerializable

    public static java.lang.Object cloneSerializable(java.lang.Object obj)

  Clone a `Serializable` object; for use when a `clone()` method is not available.

  Parameters:
    `obj` - object to clone
  Returns:
    clone object
  Throws:
    `java.lang.RuntimeException`

### toBytes

    public static byte[] toBytes(java.lang.Object obj)

### toObject

    public static java.lang.Object toObject(java.io.InputStream binaryStream,
                                            java.lang.ClassLoader cl)

### toObject

    public static java.lang.Object toObject(byte[] arr,
                                            java.lang.ClassLoader cl)

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD