public class SerializationUtils extends Object
Constructor and Description |
---|
SerializationUtils() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
deepCopy(Serializable object)
Create a deep copy/clone of any serializable object
|
static <T> T |
deserialize(InputStream inputStream) |
static <T> T |
deserializeFromFile(String fileName) |
static void |
serialize(Serializable object,
OutputStream outputStream)
note object should be serializable
|
static void |
serializeToFile(Serializable object,
String fileName) |
public static void serialize(Serializable object, OutputStream outputStream) throws IOException
IOException
public static void serializeToFile(Serializable object, String fileName) throws IOException
IOException
public static <T> T deserialize(InputStream inputStream) throws Throwable
Throwable
public static <T> T deserializeFromFile(String fileName) throws Throwable
Throwable
public static <T> T deepCopy(Serializable object)
Copyright © 2015. All rights reserved.