org.springframework.batch.support
Class SerializationUtils

java.lang.Object
  extended by org.springframework.batch.support.SerializationUtils

public class SerializationUtils
extends Object

Static utility to help with serialization.

Author:
Dave Syer

Constructor Summary
SerializationUtils()
           
 
Method Summary
static Object deserialize(byte[] bytes)
           
static byte[] serialize(Object object)
          Serialize the object provided.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerializationUtils

public SerializationUtils()
Method Detail

serialize

public static byte[] serialize(Object object)
Serialize the object provided.

Parameters:
object - the object to serialize
Returns:
an array of bytes representing the object in a portable fashion

deserialize

public static Object deserialize(byte[] bytes)
Parameters:
bytes - a serialized object created
Returns:
the result of deserializing the bytes


Copyright © 2013 SpringSource. All Rights Reserved.