Package org.bardframework.commons.utils
Class SerializationUtils
java.lang.Object
org.bardframework.commons.utils.SerializationUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Tdeserialize(byte[] inBytes) static <T> Tdeserialize(InputStream inputStream) static <T> TdeserializeAndCheckObject(byte[] object, Class<? extends Serializable> type) static byte[]serialize(Serializable object) static voidserialize(Serializable object, OutputStream outputStream) static byte[]
-
Method Details
-
serialize
- Throws:
IOException
-
serialize
- Throws:
IOException
-
deserialize
- Throws:
IOExceptionClassNotFoundException
-
deserialize
- Throws:
IOExceptionClassNotFoundException
-
serializeAndEncodeObject
- Throws:
IOException
-
deserializeAndCheckObject
public static <T> T deserializeAndCheckObject(byte[] object, Class<? extends Serializable> type) throws IOException, ClassNotFoundException - Throws:
IOExceptionClassNotFoundException
-