public abstract class SerializationUtils extends Object
Modifier and Type | Method and Description |
---|---|
static Object |
unwrap(Serializable o)
Makes sure a regular object is returned, wrappers for serialization will
be removed.
|
static Serializable |
wrap(Object o)
Makes sure an object is serializable, otherwise a serializable wrapper
will be returned.
|
public static Serializable wrap(Object o)
o
- Object to be serialized.public static Object unwrap(Serializable o)
o
- Deserialized object.Copyright © 2009-2013. All Rights Reserved.