Package org.apache.batchee.container.util

## Class Serializations

- java.lang.Object
- - org.apache.batchee.container.util.Serializations

-     public final class Serializations
      extends Object

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `static Serializable` | `deserialize​(byte[] buffer)` | This method is used to de-serialized a table BLOB field to its original object form.
    `static byte[]` | `serialize​(Serializable theObject)` | This method is used to serialized an object saved into a table BLOB field.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### serialize

          public static byte[] serialize​(Serializable theObject)
                                  throws IOException

      This method is used to serialized an object saved into a table BLOB field.
      Parameters:
        `theObject` - the object to be serialized
      Returns:
        a object byte array
      Throws:
        `IOException`

    - #### deserialize

          public static Serializable deserialize​(byte[] buffer)
                                          throws IOException,
                                                 ClassNotFoundException

      This method is used to de-serialized a table BLOB field to its original object form.
      Parameters:
        `buffer` - the byte array save a BLOB
      Returns:
        the object saved as byte array
      Throws:
        `IOException`
        `ClassNotFoundException`