Package com.github.simy4.xpath.helpers
Class SerializationHelper
- java.lang.Object
-
- com.github.simy4.xpath.helpers.SerializationHelper
-
public final class SerializationHelper extends java.lang.ObjectSerialization and deserialization tester.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> TserializeAndDeserializeBack(T t)Serializes and deserializes given object back.
-
-
-
Method Detail
-
serializeAndDeserializeBack
public static <T> T serializeAndDeserializeBack(T t) throws java.io.IOException, java.lang.ClassNotFoundExceptionSerializes and deserializes given object back.- Type Parameters:
T- serialized type- Parameters:
t- object to serialize and deserialize- Returns:
- deserialized copy
- Throws:
java.lang.ClassNotFoundException- if serialized object cannon be foundjava.io.IOException- if any exception thrown by the underlying OutputStream
-
-